1 #ifndef _X86_64_KDEBUG_H
2 #define _X86_64_KDEBUG_H 1
4 #include <linux/notifier.h>
16 /* Note - you should never unregister because that can race with NMIs.
17 If you really want to do it first unregister - then synchronize_sched - then free.
19 int register_die_notifier(struct notifier_block *nb);
20 extern struct notifier_block *die_chain;
21 /* Grossly misnamed. */
38 static inline int notify_die(enum die_val val, const char *str,
39 struct pt_regs *regs, long err, int trap, int sig)
41 struct die_args args = {
48 return notifier_call_chain(&die_chain, val, &args);
51 extern int printk_address(unsigned long address);
52 extern void die(const char *,struct pt_regs *,long);
53 extern void __die(const char *,struct pt_regs *,long);
54 extern void show_registers(struct pt_regs *regs);
55 extern void dump_pagetable(unsigned long);
56 extern unsigned long oops_begin(void);
57 extern void oops_end(unsigned long);