aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/kdebug.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-i386/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-i386/kdebug.h')
-rw-r--r--include/asm-i386/kdebug.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/include/asm-i386/kdebug.h b/include/asm-i386/kdebug.h
new file mode 100644
index 000000000000..de6498b0d493
--- /dev/null
+++ b/include/asm-i386/kdebug.h
@@ -0,0 +1,50 @@
1#ifndef _I386_KDEBUG_H
2#define _I386_KDEBUG_H 1
3
4/*
5 * Aug-05 2004 Ported by Prasanna S Panchamukhi <prasanna@in.ibm.com>
6 * from x86_64 architecture.
7 */
8#include <linux/notifier.h>
9
10struct pt_regs;
11
12struct die_args {
13 struct pt_regs *regs;
14 const char *str;
15 long err;
16 int trapnr;
17 int signr;
18};
19
20/* Note - you should never unregister because that can race with NMIs.
21 If you really want to do it first unregister - then synchronize_kernel - then free.
22 */
23int register_die_notifier(struct notifier_block *nb);
24extern struct notifier_block *i386die_chain;
25
26
27/* Grossly misnamed. */
28enum die_val {
29 DIE_OOPS = 1,
30 DIE_INT3,
31 DIE_DEBUG,
32 DIE_PANIC,
33 DIE_NMI,
34 DIE_DIE,
35 DIE_NMIWATCHDOG,
36 DIE_KERNELDEBUG,
37 DIE_TRAP,
38 DIE_GPF,
39 DIE_CALL,
40 DIE_NMI_IPI,
41 DIE_PAGE_FAULT,
42};
43
44static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig)
45{
46 struct die_args args = { .regs=regs, .str=str, .err=err, .trapnr=trap,.signr=sig };
47 return notifier_call_chain(&i386die_chain, val, &args);
48}
49
50#endif