ARM: 6355/1: hw-breakpoint: add mechanism for hooking into prefetch aborts
authorWill Deacon <will.deacon@arm.com>
Fri, 3 Sep 2010 09:39:59 +0000 (10:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 8 Sep 2010 09:04:59 +0000 (10:04 +0100)
commit3a4b5dca53aecb16db9e007d782b2d1e757e941a
tree2aae51c15a249882f656972929bf830b8e8a8b63
parentd56557af19867edb8c0e96f8e26399698a08857f
ARM: 6355/1: hw-breakpoint: add mechanism for hooking into prefetch aborts

On ARM processors with hardware breakpoint and watchpoint support,
triggering these events results in a debug exception. These manifest
as prefetch and data aborts respectively.

arch/arm/mm/fault.c already provides hook_fault_code for hooking
into data aborts dependent on the DFSR. This patch adds a new function,
hook_ifault_code for hooking into prefetch aborts in the same manner.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: S. Karthikeyan <informkarthik@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/system.h
arch/arm/mm/fault.c