diff options
Diffstat (limited to 'arch/x86/include/asm/kdebug.h')
-rw-r--r-- | arch/x86/include/asm/kdebug.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kdebug.h b/arch/x86/include/asm/kdebug.h index 395c9631e000..75f1e35e7c15 100644 --- a/arch/x86/include/asm/kdebug.h +++ b/arch/x86/include/asm/kdebug.h | |||
@@ -22,10 +22,20 @@ enum die_val { | |||
22 | DIE_NMIUNKNOWN, | 22 | DIE_NMIUNKNOWN, |
23 | }; | 23 | }; |
24 | 24 | ||
25 | enum show_regs_mode { | ||
26 | SHOW_REGS_SHORT, | ||
27 | /* | ||
28 | * For when userspace crashed, but we don't think it's our fault, and | ||
29 | * therefore don't print kernel registers. | ||
30 | */ | ||
31 | SHOW_REGS_USER, | ||
32 | SHOW_REGS_ALL | ||
33 | }; | ||
34 | |||
25 | extern void die(const char *, struct pt_regs *,long); | 35 | extern void die(const char *, struct pt_regs *,long); |
26 | extern int __must_check __die(const char *, struct pt_regs *, long); | 36 | extern int __must_check __die(const char *, struct pt_regs *, long); |
27 | extern void show_stack_regs(struct pt_regs *regs); | 37 | extern void show_stack_regs(struct pt_regs *regs); |
28 | extern void __show_regs(struct pt_regs *regs, int all); | 38 | extern void __show_regs(struct pt_regs *regs, enum show_regs_mode); |
29 | extern void show_iret_regs(struct pt_regs *regs); | 39 | extern void show_iret_regs(struct pt_regs *regs); |
30 | extern unsigned long oops_begin(void); | 40 | extern unsigned long oops_begin(void); |
31 | extern void oops_end(unsigned long, struct pt_regs *, int signr); | 41 | extern void oops_end(unsigned long, struct pt_regs *, int signr); |