ARM: hw_breakpoint: add support for multiple watchpoints
authorWill Deacon <will.deacon@arm.com>
Tue, 2 Aug 2011 15:16:57 +0000 (16:16 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 31 Aug 2011 09:42:48 +0000 (10:42 +0100)
commit6f26aa05c9edffff6a4c2cd71774bc659a5cceec
treea2db63a03389e2153004347ddd93805486d1076b
parentc512de955f0982aafa49d3f00d5643052a6790e5
ARM: hw_breakpoint: add support for multiple watchpoints

ARM debug architecture 7.1 mandates that the DFAR is updated on a
watchpoint debug exception to contain the faulting virtual address
of the memory access. This allows us to determine which watchpoints
have fired and therefore report useful information to userspace.

This patch adds support for using the DFAR in the watchpoint handler,
which allows us to support multiple watchpoints on CPUs implementing
the new debug architecture.

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