diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-avr32/kdebug.h | 17 | ||||
-rw-r--r-- | include/asm-avr32/kprobes.h | 1 |
2 files changed, 14 insertions, 4 deletions
diff --git a/include/asm-avr32/kdebug.h b/include/asm-avr32/kdebug.h index de419278fc39..7f54e2b15d13 100644 --- a/include/asm-avr32/kdebug.h +++ b/include/asm-avr32/kdebug.h | |||
@@ -5,13 +5,22 @@ | |||
5 | 5 | ||
6 | /* Grossly misnamed. */ | 6 | /* Grossly misnamed. */ |
7 | enum die_val { | 7 | enum die_val { |
8 | DIE_FAULT, | ||
9 | DIE_BREAKPOINT, | 8 | DIE_BREAKPOINT, |
10 | DIE_SSTEP, | 9 | DIE_SSTEP, |
11 | DIE_PAGE_FAULT, | ||
12 | }; | 10 | }; |
13 | 11 | ||
14 | int register_page_fault_notifier(struct notifier_block *nb); | 12 | /* |
15 | int unregister_page_fault_notifier(struct notifier_block *nb); | 13 | * These are only here because kprobes.c wants them to implement a |
14 | * blatant layering violation. Will hopefully go away soon once all | ||
15 | * architectures are updated. | ||
16 | */ | ||
17 | static inline int register_page_fault_notifier(struct notifier_block *nb) | ||
18 | { | ||
19 | return 0; | ||
20 | } | ||
21 | static inline int unregister_page_fault_notifier(struct notifier_block *nb) | ||
22 | { | ||
23 | return 0; | ||
24 | } | ||
16 | 25 | ||
17 | #endif /* __ASM_AVR32_KDEBUG_H */ | 26 | #endif /* __ASM_AVR32_KDEBUG_H */ |
diff --git a/include/asm-avr32/kprobes.h b/include/asm-avr32/kprobes.h index 09a5cbe2f896..190a6377c809 100644 --- a/include/asm-avr32/kprobes.h +++ b/include/asm-avr32/kprobes.h | |||
@@ -26,6 +26,7 @@ struct arch_specific_insn { | |||
26 | kprobe_opcode_t insn[MAX_INSN_SIZE]; | 26 | kprobe_opcode_t insn[MAX_INSN_SIZE]; |
27 | }; | 27 | }; |
28 | 28 | ||
29 | extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr); | ||
29 | extern int kprobe_exceptions_notify(struct notifier_block *self, | 30 | extern int kprobe_exceptions_notify(struct notifier_block *self, |
30 | unsigned long val, void *data); | 31 | unsigned long val, void *data); |
31 | 32 | ||