diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-09-07 23:22:47 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-09-07 23:22:47 -0400 |
commit | 037c10a612e8b7461e33672fb3848807ac6e2346 (patch) | |
tree | 97f41894ffa408c7e4a9b14e08fa7ffdc19e3cfd /arch/sh/include/asm/kprobes.h | |
parent | fc63562ac2107dfa843f5288fe985fc6f0021c17 (diff) |
sh: kprobes: Hook up kprobe_fault_handler() in the page fault path.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/kprobes.h')
-rw-r--r-- | arch/sh/include/asm/kprobes.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/include/asm/kprobes.h b/arch/sh/include/asm/kprobes.h index 70fc629df904..756a5cd96378 100644 --- a/arch/sh/include/asm/kprobes.h +++ b/arch/sh/include/asm/kprobes.h | |||
@@ -6,8 +6,6 @@ | |||
6 | #include <linux/types.h> | 6 | #include <linux/types.h> |
7 | #include <linux/ptrace.h> | 7 | #include <linux/ptrace.h> |
8 | 8 | ||
9 | struct pt_regs; | ||
10 | |||
11 | typedef u16 kprobe_opcode_t; | 9 | typedef u16 kprobe_opcode_t; |
12 | #define BREAKPOINT_INSTRUCTION 0xc3ff | 10 | #define BREAKPOINT_INSTRUCTION 0xc3ff |
13 | 11 | ||
@@ -48,6 +46,7 @@ struct kprobe_ctlblk { | |||
48 | struct prev_kprobe prev_kprobe; | 46 | struct prev_kprobe prev_kprobe; |
49 | }; | 47 | }; |
50 | 48 | ||
49 | extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr); | ||
51 | extern int kprobe_exceptions_notify(struct notifier_block *self, | 50 | extern int kprobe_exceptions_notify(struct notifier_block *self, |
52 | unsigned long val, void *data); | 51 | unsigned long val, void *data); |
53 | extern int kprobe_handle_illslot(unsigned long pc); | 52 | extern int kprobe_handle_illslot(unsigned long pc); |