]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 15 Oct 2012 11:01:08 +0000 (12:01 +0100)
commitf5206faf707ec754f4eccf789e9c9c9156308a15
tree72816f69af6e907c95384374caaa2b95d22e708a
parent32560e206931a084bd7519ed1cb09c5f0e198b59
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.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/hw_breakpoint.c