ARM: 6768/1: hw_breakpoint: ensure debug logic is powered up on v7 cores
authorWill Deacon <will.deacon@arm.com>
Fri, 25 Feb 2011 19:20:42 +0000 (20:20 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Feb 2011 13:35:51 +0000 (13:35 +0000)
commitc09bae709182046ab104757115dfbd74a1ba1a15
tree4abb05c23dd1846666c327d4ccb8aa3458b6f44a
parentba55d3db9bb59a52fe45dbc5d62776adbb289e54
ARM: 6768/1: hw_breakpoint: ensure debug logic is powered up on v7 cores

ARMv7 allows the debug core logic to be powered down and provides the
DBGPRSR register so that software can power-up and check the status of
the logic.

This patch ensures that the debug logic is powered up on ARMv7 cores
before we attempt to access the extended debug registers.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/hw_breakpoint.c