ARM: 6864/1: hw_breakpoint: clear DBGVCR out of reset
authorWill Deacon <will.deacon@arm.com>
Tue, 5 Apr 2011 12:57:53 +0000 (13:57 +0100)
committerBrad Figg <brad.figg@canonical.com>
Wed, 27 Apr 2011 18:42:14 +0000 (11:42 -0700)
commitcffdd84f945ba7989744a5eb2a558c166ac3c162
treed7fea59ee0657d7846c0adee4bbe59284a00d056
parent3c3f98783549c86202bfe7766a5523a85e820017
ARM: 6864/1: hw_breakpoint: clear DBGVCR out of reset

BugLink: http://bugs.launchpad.net/bugs/769042

commit e89c0d7090c54d7b11b9b091e495a1ae345dd3ff upstream.

The DBGVCR, used for configuring vector catch debug events, is UNKNOWN
out of reset on ARMv7. When enabling monitor mode, this must be zeroed
to avoid UNPREDICTABLE behaviour.

This patch adds the zeroing code to the debug reset path.

Reported-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
arch/arm/kernel/hw_breakpoint.c