1 #ifndef _ASM_POWERPC_KDEBUG_H
2 #define _ASM_POWERPC_KDEBUG_H
5 /* nearly identical to x86_64/i386 code */
7 #include <linux/notifier.h>
19 extern int register_die_notifier(struct notifier_block *);
20 extern int unregister_die_notifier(struct notifier_block *);
23 * These are only here because kprobes.c wants them to implement a
24 * blatant layering violation. Will hopefully go away soon once all
25 * architectures are updated.
27 static inline int register_page_fault_notifier(struct notifier_block *nb)
31 static inline int unregister_page_fault_notifier(struct notifier_block *nb)
35 extern struct atomic_notifier_head powerpc_die_chain;
37 /* Grossly misnamed. */
46 static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig)
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);
52 #endif /* __KERNEL__ */
53 #endif /* _ASM_POWERPC_KDEBUG_H */