ARM: hw_breakpoint: fix monitor mode detection with v7.1
authorWill Deacon <will.deacon@arm.com>
Fri, 21 Sep 2012 14:08:17 +0000 (15:08 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 9 Nov 2012 11:47:05 +0000 (11:47 +0000)
commitb59a540ca927ea84bb0590b9d8076f50c969abb4
tree351ff0e5efa1343879e57824acdcba498fd7309c
parente64877dcf5fd05d81fa195785a738f3a729587a3
ARM: hw_breakpoint: fix monitor mode detection with v7.1

Detecting whether halting debug is enabled is no longer possible via
the DBGDSCR in v7.1, returning an UNKNOWN value for the HDBGen bit via
CP14 when the OS lock is clear.

This patch removes the halting mode check and ensures that accesses to
the internal and external views of the DBGDSCR are serialised with an
instruction barrier.

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