diff options
Diffstat (limited to 'include/asm-powerpc/kdebug.h')
-rw-r--r-- | include/asm-powerpc/kdebug.h | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/include/asm-powerpc/kdebug.h b/include/asm-powerpc/kdebug.h index 532bfee934f4..295f0162c608 100644 --- a/include/asm-powerpc/kdebug.h +++ b/include/asm-powerpc/kdebug.h | |||
@@ -6,20 +6,19 @@ | |||
6 | 6 | ||
7 | #include <linux/notifier.h> | 7 | #include <linux/notifier.h> |
8 | 8 | ||
9 | struct pt_regs; | 9 | /* |
10 | 10 | * These are only here because kprobes.c wants them to implement a | |
11 | struct die_args { | 11 | * blatant layering violation. Will hopefully go away soon once all |
12 | struct pt_regs *regs; | 12 | * architectures are updated. |
13 | const char *str; | 13 | */ |
14 | long err; | 14 | static inline int register_page_fault_notifier(struct notifier_block *nb) |
15 | int trapnr; | 15 | { |
16 | int signr; | 16 | return 0; |
17 | }; | 17 | } |
18 | 18 | static inline int unregister_page_fault_notifier(struct notifier_block *nb) | |
19 | extern int register_die_notifier(struct notifier_block *); | 19 | { |
20 | extern int unregister_die_notifier(struct notifier_block *); | 20 | return 0; |
21 | extern int register_page_fault_notifier(struct notifier_block *); | 21 | } |
22 | extern int unregister_page_fault_notifier(struct notifier_block *); | ||
23 | extern struct atomic_notifier_head powerpc_die_chain; | 22 | extern struct atomic_notifier_head powerpc_die_chain; |
24 | 23 | ||
25 | /* Grossly misnamed. */ | 24 | /* Grossly misnamed. */ |
@@ -29,14 +28,7 @@ enum die_val { | |||
29 | DIE_DABR_MATCH, | 28 | DIE_DABR_MATCH, |
30 | DIE_BPT, | 29 | DIE_BPT, |
31 | DIE_SSTEP, | 30 | DIE_SSTEP, |
32 | DIE_PAGE_FAULT, | ||
33 | }; | 31 | }; |
34 | 32 | ||
35 | static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig) | ||
36 | { | ||
37 | struct die_args args = { .regs=regs, .str=str, .err=err, .trapnr=trap,.signr=sig }; | ||
38 | return atomic_notifier_call_chain(&powerpc_die_chain, val, &args); | ||
39 | } | ||
40 | |||
41 | #endif /* __KERNEL__ */ | 33 | #endif /* __KERNEL__ */ |
42 | #endif /* _ASM_POWERPC_KDEBUG_H */ | 34 | #endif /* _ASM_POWERPC_KDEBUG_H */ |