aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/kdebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/kdebug.h')
-rw-r--r--include/asm-powerpc/kdebug.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/asm-powerpc/kdebug.h b/include/asm-powerpc/kdebug.h
index df996b933def..295f0162c608 100644
--- a/include/asm-powerpc/kdebug.h
+++ b/include/asm-powerpc/kdebug.h
@@ -6,19 +6,6 @@
6 6
7#include <linux/notifier.h> 7#include <linux/notifier.h>
8 8
9struct pt_regs;
10
11struct die_args {
12 struct pt_regs *regs;
13 const char *str;
14 long err;
15 int trapnr;
16 int signr;
17};
18
19extern int register_die_notifier(struct notifier_block *);
20extern int unregister_die_notifier(struct notifier_block *);
21
22/* 9/*
23 * These are only here because kprobes.c wants them to implement a 10 * These are only here because kprobes.c wants them to implement a
24 * blatant layering violation. Will hopefully go away soon once all 11 * blatant layering violation. Will hopefully go away soon once all
@@ -43,11 +30,5 @@ enum die_val {
43 DIE_SSTEP, 30 DIE_SSTEP,
44}; 31};
45 32
46static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig)
47{
48 struct die_args args = { .regs=regs, .str=str, .err=err, .trapnr=trap,.signr=sig };
49 return atomic_notifier_call_chain(&powerpc_die_chain, val, &args);
50}
51
52#endif /* __KERNEL__ */ 33#endif /* __KERNEL__ */
53#endif /* _ASM_POWERPC_KDEBUG_H */ 34#endif /* _ASM_POWERPC_KDEBUG_H */