aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/kprobes.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-09-08 18:10:10 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-09-08 18:10:10 +0900
commit174b5c9923e0170c844e03d55a9f3fb3b329a8b7 (patch)
tree09192f40fab1bed13d2bb5b2b6d08ddff3f5621d /arch/sh/kernel/kprobes.c
parentsh: kprobes: Hook up kprobe_fault_handler() in the page fault path. (diff)
downloadlinux-dev-174b5c9923e0170c844e03d55a9f3fb3b329a8b7.tar.xz
linux-dev-174b5c9923e0170c844e03d55a9f3fb3b329a8b7.zip
sh: kprobes: Use trapa #0x3a for breakpoint trap.
Not all parts support trapa #0xff, so use something within the debug trap range that's accessible on all parts. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to '')
-rw-r--r--arch/sh/kernel/kprobes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/kernel/kprobes.c b/arch/sh/kernel/kprobes.c
index 81a3725e5155..fdd049e9ad86 100644
--- a/arch/sh/kernel/kprobes.c
+++ b/arch/sh/kernel/kprobes.c
@@ -525,8 +525,7 @@ int __kprobes setjmp_pre_handler(struct kprobe *p, struct pt_regs *regs)
void __kprobes jprobe_return(void)
{
- __asm("trapa #-1\n\t" "jprobe_return_end:\n\t" "nop\n\t");
-
+ asm volatile ("trapa #0x3a\n\t" "jprobe_return_end:\n\t" "nop\n\t");
}
int __kprobes longjmp_break_handler(struct kprobe *p, struct pt_regs *regs)