1 #ifndef _X86_64_KDEBUG_H
2 #define _X86_64_KDEBUG_H 1
4 #include <linux/notifier.h>
16 extern int register_die_notifier(struct notifier_block
*);
17 extern int unregister_die_notifier(struct notifier_block
*);
18 extern int register_page_fault_notifier(struct notifier_block
*);
19 extern int unregister_page_fault_notifier(struct notifier_block
*);
20 extern struct atomic_notifier_head die_chain
;
22 /* Grossly misnamed. */
39 static inline int notify_die(enum die_val val
, const char *str
,
40 struct pt_regs
*regs
, long err
, int trap
, int sig
)
42 struct die_args args
= {
49 return atomic_notifier_call_chain(&die_chain
, val
, &args
);
52 extern void printk_address(unsigned long address
);
53 extern void die(const char *,struct pt_regs
*,long);
54 extern void __die(const char *,struct pt_regs
*,long);
55 extern void show_registers(struct pt_regs
*regs
);
56 extern void dump_pagetable(unsigned long);
57 extern unsigned long oops_begin(void);
58 extern void oops_end(unsigned long);