diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-x86_64/kdebug.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-x86_64/kdebug.h')
-rw-r--r-- | include/asm-x86_64/kdebug.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/include/asm-x86_64/kdebug.h b/include/asm-x86_64/kdebug.h new file mode 100644 index 000000000000..adb6f918d3ad --- /dev/null +++ b/include/asm-x86_64/kdebug.h | |||
@@ -0,0 +1,53 @@ | |||
1 | #ifndef _X86_64_KDEBUG_H | ||
2 | #define _X86_64_KDEBUG_H 1 | ||
3 | |||
4 | #include <linux/notifier.h> | ||
5 | |||
6 | struct pt_regs; | ||
7 | |||
8 | struct die_args { | ||
9 | struct pt_regs *regs; | ||
10 | const char *str; | ||
11 | long err; | ||
12 | int trapnr; | ||
13 | int signr; | ||
14 | }; | ||
15 | |||
16 | /* Note - you should never unregister because that can race with NMIs. | ||
17 | If you really want to do it first unregister - then synchronize_kernel - then free. | ||
18 | */ | ||
19 | int register_die_notifier(struct notifier_block *nb); | ||
20 | extern struct notifier_block *die_chain; | ||
21 | /* Grossly misnamed. */ | ||
22 | enum die_val { | ||
23 | DIE_OOPS = 1, | ||
24 | DIE_INT3, | ||
25 | DIE_DEBUG, | ||
26 | DIE_DEBUGSTEP, | ||
27 | DIE_PANIC, | ||
28 | DIE_NMI, | ||
29 | DIE_DIE, | ||
30 | DIE_NMIWATCHDOG, | ||
31 | DIE_KERNELDEBUG, | ||
32 | DIE_TRAP, | ||
33 | DIE_GPF, | ||
34 | DIE_CALL, | ||
35 | DIE_NMI_IPI, | ||
36 | DIE_PAGE_FAULT, | ||
37 | }; | ||
38 | |||
39 | static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig) | ||
40 | { | ||
41 | struct die_args args = { .regs=regs, .str=str, .err=err, .trapnr=trap,.signr=sig }; | ||
42 | return notifier_call_chain(&die_chain, val, &args); | ||
43 | } | ||
44 | |||
45 | extern int printk_address(unsigned long address); | ||
46 | extern void die(const char *,struct pt_regs *,long); | ||
47 | extern void __die(const char *,struct pt_regs *,long); | ||
48 | extern void show_registers(struct pt_regs *regs); | ||
49 | extern void dump_pagetable(unsigned long); | ||
50 | extern void oops_begin(void); | ||
51 | extern void oops_end(void); | ||
52 | |||
53 | #endif | ||