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 | |
David S. Miller | 127cda1 | 2007-05-08 18:25:14 -0700 | [diff] [blame] | 10 | /* |
| 11 | * These are only here because kprobes.c wants them to implement a |
| 12 | * blatant layering violation. Will hopefully go away soon once all |
| 13 | * architectures are updated. |
| 14 | */ |
| 15 | static inline int register_page_fault_notifier(struct notifier_block *nb) |
| 16 | { |
| 17 | return 0; |
| 18 | } |
| 19 | static inline int unregister_page_fault_notifier(struct notifier_block *nb) |
| 20 | { |
| 21 | return 0; |
| 22 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | |
| 24 | extern void bad_trap(struct pt_regs *, long); |
| 25 | |
| 26 | /* Grossly misnamed. */ |
| 27 | enum die_val { |
| 28 | DIE_OOPS = 1, |
| 29 | DIE_DEBUG, /* ta 0x70 */ |
| 30 | DIE_DEBUG_2, /* ta 0x71 */ |
| 31 | DIE_DIE, |
| 32 | DIE_TRAP, |
| 33 | DIE_TRAP_TL1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | DIE_CALL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | }; |
| 36 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | #endif |