Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Anil S Keshavamurthy | d98f8f0 | 2006-06-26 00:25:27 -0700 | [diff] [blame] | 10 | extern int register_page_fault_notifier(struct notifier_block *); |
| 11 | extern int unregister_page_fault_notifier(struct notifier_block *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | #endif |