Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225927
b: refs/heads/master
c: 3ce70b2
h: refs/heads/master
i:
  225925: 68cd54b
  225923: b2ee34c
  225919: 03043f6
v: v3
  • Loading branch information
Will Deacon committed Dec 6, 2010
1 parent 1c67242 commit 862b26d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9ebb3cbcc39d4e61ae6751167086acfb5c201e6f
refs/heads/master: 3ce70b2e24cd35cc9f2df8cf5205b8ab4e6178e1
6 changes: 4 additions & 2 deletions trunk/arch/arm/kernel/hw_breakpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,12 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp)
* Currently we rely on an overflow handler to take
* care of single-stepping the breakpoint when it fires.
* In the case of userspace breakpoints on a core with V7 debug,
* we can use the mismatch feature as a poor-man's hardware single-step.
* we can use the mismatch feature as a poor-man's hardware
* single-step, but this only works for per-task breakpoints.
*/
if (WARN_ONCE(!bp->overflow_handler &&
(arch_check_bp_in_kernelspace(bp) || !core_has_mismatch_brps()),
(arch_check_bp_in_kernelspace(bp) || !core_has_mismatch_brps()
|| !bp->hw.bp_target),
"overflow handler required but none found")) {
ret = -EINVAL;
}
Expand Down

0 comments on commit 862b26d

Please sign in to comment.