move die notifier handling to common code
[linux-2.6] / include / asm-sparc64 / kdebug.h
1 #ifndef _SPARC64_KDEBUG_H
2 #define _SPARC64_KDEBUG_H
3
4 /* Nearly identical to x86_64/i386 code. */
5
6 #include <linux/notifier.h>
7
8 struct pt_regs;
9
10 extern int register_page_fault_notifier(struct notifier_block *);
11 extern int unregister_page_fault_notifier(struct notifier_block *);
12
13 extern void bad_trap(struct pt_regs *, long);
14
15 /* Grossly misnamed. */
16 enum die_val {
17         DIE_OOPS = 1,
18         DIE_DEBUG,      /* ta 0x70 */
19         DIE_DEBUG_2,    /* ta 0x71 */
20         DIE_DIE,
21         DIE_TRAP,
22         DIE_TRAP_TL1,
23         DIE_GPF,
24         DIE_CALL,
25         DIE_PAGE_FAULT,
26 };
27
28 #endif