Stephen Rothwell | bbeb3f4 | 2005-09-27 13:51:59 +1000 | [diff] [blame] | 1 | #ifndef _ASM_POWERPC_KDEBUG_H |
| 2 | #define _ASM_POWERPC_KDEBUG_H |
Arnd Bergmann | 88ced03 | 2005-12-16 22:43:46 +0100 | [diff] [blame] | 3 | #ifdef __KERNEL__ |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 4 | |
| 5 | /* nearly identical to x86_64/i386 code */ |
| 6 | |
| 7 | #include <linux/notifier.h> |
| 8 | |
Christoph Hellwig | 9f90b99 | 2007-04-30 11:56:46 +0100 | [diff] [blame] | 9 | /* |
| 10 | * These are only here because kprobes.c wants them to implement a |
| 11 | * blatant layering violation. Will hopefully go away soon once all |
| 12 | * architectures are updated. |
| 13 | */ |
| 14 | static inline int register_page_fault_notifier(struct notifier_block *nb) |
| 15 | { |
| 16 | return 0; |
| 17 | } |
| 18 | static inline int unregister_page_fault_notifier(struct notifier_block *nb) |
| 19 | { |
| 20 | return 0; |
| 21 | } |
Alan Stern | e041c68 | 2006-03-27 01:16:30 -0800 | [diff] [blame] | 22 | extern struct atomic_notifier_head powerpc_die_chain; |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 23 | |
| 24 | /* Grossly misnamed. */ |
| 25 | enum die_val { |
| 26 | DIE_OOPS = 1, |
| 27 | DIE_IABR_MATCH, |
| 28 | DIE_DABR_MATCH, |
| 29 | DIE_BPT, |
| 30 | DIE_SSTEP, |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 31 | }; |
| 32 | |
Arnd Bergmann | 88ced03 | 2005-12-16 22:43:46 +0100 | [diff] [blame] | 33 | #endif /* __KERNEL__ */ |
Stephen Rothwell | bbeb3f4 | 2005-09-27 13:51:59 +1000 | [diff] [blame] | 34 | #endif /* _ASM_POWERPC_KDEBUG_H */ |