ARM: hw_breakpoint: don't try to clear v6 debug registers during boot
authorWill Deacon <will.deacon@arm.com>
Fri, 21 Sep 2012 16:53:08 +0000 (17:53 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 9 Nov 2012 11:47:06 +0000 (11:47 +0000)
commit7f4050a07be8ce5fad069722326ccd550577a93a
tree25d70385131d664bc99697f6e95d50147a27b4b0
parent614bea500a88be2a841af0967469961470f2be83
ARM: hw_breakpoint: don't try to clear v6 debug registers during boot

v6 cores do not provide a way to clear the debug registers without first
enabling monitor mode, meaning that we could take spurious debug
exceptions. Instead, rely on the registers being in a sane state when we
boot as they are defined to be disabled out of reset anyway.

Tested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/hw_breakpoint.c