xref: /openbmc/linux/arch/x86/include/asm/kdebug.h (revision df2634f43f5106947f3735a0b61a6527a4b278cd)
1 #ifndef _ASM_X86_KDEBUG_H
2 #define _ASM_X86_KDEBUG_H
3 
4 #include <linux/notifier.h>
5 
6 struct pt_regs;
7 
8 /* Grossly misnamed. */
9 enum die_val {
10 	DIE_OOPS = 1,
11 	DIE_INT3,
12 	DIE_DEBUG,
13 	DIE_PANIC,
14 	DIE_NMI,
15 	DIE_DIE,
16 	DIE_NMIWATCHDOG,
17 	DIE_KERNELDEBUG,
18 	DIE_TRAP,
19 	DIE_GPF,
20 	DIE_CALL,
21 	DIE_PAGE_FAULT,
22 	DIE_NMIUNKNOWN,
23 };
24 
25 extern void printk_address(unsigned long address, int reliable);
26 extern void die(const char *, struct pt_regs *,long);
27 extern int __must_check __die(const char *, struct pt_regs *, long);
28 extern void show_registers(struct pt_regs *regs);
29 extern void show_trace(struct task_struct *t, struct pt_regs *regs,
30 		       unsigned long *sp);
31 extern void __show_regs(struct pt_regs *regs, int all);
32 extern void show_regs(struct pt_regs *regs);
33 extern unsigned long oops_begin(void);
34 extern void oops_end(unsigned long, struct pt_regs *, int signr);
35 #ifdef CONFIG_KEXEC
36 extern int in_crash_kexec;
37 #else
38 /* no crash dump is ever in progress if no crash kernel can be kexec'd */
39 #define in_crash_kexec 0
40 #endif
41 
42 #endif /* _ASM_X86_KDEBUG_H */
43