Commit | Line | Data |
---|---|---|
1da177e4 LT |
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 | ||
d98f8f05 AK |
10 | extern int register_page_fault_notifier(struct notifier_block *); |
11 | extern int unregister_page_fault_notifier(struct notifier_block *); | |
1da177e4 LT |
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 | ||
1da177e4 | 28 | #endif |