1 #ifndef _PPC64_KDEBUG_H
2 #define _PPC64_KDEBUG_H 1
4 /* nearly identical to x86_64/i386 code */
6 #include <linux/notifier.h>
19 Note - you should never unregister because that can race with NMIs.
20 If you really want to do it first unregister - then synchronize_kernel -
23 int register_die_notifier(struct notifier_block *nb);
24 extern struct notifier_block *ppc64_die_chain;
26 /* Grossly misnamed. */
37 static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig)
39 struct die_args args = { .regs=regs, .str=str, .err=err, .trapnr=trap,.signr=sig };
40 return notifier_call_chain(&ppc64_die_chain, val, &args);