ARM: hw_breakpoint: trap undef instruction exceptions in reset_ctrl_regs
authorWill Deacon <will.deacon@arm.com>
Mon, 8 Aug 2011 13:26:53 +0000 (14:26 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 31 Aug 2011 09:42:48 +0000 (10:42 +0100)
commit0d352e3d006c9589f22580212c3822cf62b6d775
tree3bfaf9313cab84333380789471b7a9329f3f60fd
parent6f26aa05c9edffff6a4c2cd71774bc659a5cceec
ARM: hw_breakpoint: trap undef instruction exceptions in reset_ctrl_regs

The ARM debug registers can only be accessed if the DBGSWENABLE signal
to the core is driven HIGH by the DAP. The architecture does not provide
a way to detect the value of this signal, so the best we can do is
register an undef_hook to trap debug register co-processor accesses and
then fail if the trap is taken.

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