summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/hw_breakpoint.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2010-12-01 14:12:13 +0000
committerWill Deacon <will.deacon@arm.com>2010-12-06 11:55:57 +0000
commit9ebb3cbcc39d4e61ae6751167086acfb5c201e6f (patch)
tree4e88970d75cb2e7b3a5a2f1b50c58ab358d30339 /arch/arm/include/asm/hw_breakpoint.h
parent93a04a3416da12647c47840ebe2bb812fcb801d0 (diff)
downloadtalos-obmc-linux-9ebb3cbcc39d4e61ae6751167086acfb5c201e6f.tar.gz
talos-obmc-linux-9ebb3cbcc39d4e61ae6751167086acfb5c201e6f.zip
ARM: hw_breakpoint: unify single-stepping code for watchpoints and breakpoints
The single-stepping code is currently different depending on whether we are stepping over a breakpoint or a watchpoint. There is no good reason for this, so let's sort it out. This patch adds functions for enabling/disabling single-step for a particular hw_breakpoint and integrates this with the exception handling code. Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/include/asm/hw_breakpoint.h')
-rw-r--r--arch/arm/include/asm/hw_breakpoint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/include/asm/hw_breakpoint.h b/arch/arm/include/asm/hw_breakpoint.h
index 881429d0b849..f389b2704d82 100644
--- a/arch/arm/include/asm/hw_breakpoint.h
+++ b/arch/arm/include/asm/hw_breakpoint.h
@@ -20,8 +20,8 @@ struct arch_hw_breakpoint_ctrl {
struct arch_hw_breakpoint {
u32 address;
u32 trigger;
- struct arch_hw_breakpoint_ctrl step_ctrl;
- struct arch_hw_breakpoint_ctrl ctrl;
+ struct arch_hw_breakpoint_ctrl step_ctrl;
+ struct arch_hw_breakpoint_ctrl ctrl;
};
static inline u32 encode_ctrl_reg(struct arch_hw_breakpoint_ctrl ctrl)
OpenPOWER on IntegriCloud