Michael Grundy | 4ba069b | 2006-09-20 15:58:39 +0200 | [diff] [blame] | 1 | #ifndef _S390_KDEBUG_H |
| 2 | #define _S390_KDEBUG_H |
| 3 | |
| 4 | /* |
| 5 | * Feb 2006 Ported to s390 <grundym@us.ibm.com> |
| 6 | */ |
| 7 | #include <linux/notifier.h> |
| 8 | |
| 9 | struct pt_regs; |
| 10 | |
Christoph Hellwig | 33464e3 | 2007-05-04 18:47:46 +0200 | [diff] [blame] | 11 | /* |
| 12 | * These are only here because kprobes.c wants them to implement a |
| 13 | * blatant layering violation. Will hopefully go away soon once all |
| 14 | * architectures are updated. |
| 15 | */ |
| 16 | static inline int register_page_fault_notifier(struct notifier_block *nb) |
| 17 | { |
| 18 | return 0; |
| 19 | } |
| 20 | static inline int unregister_page_fault_notifier(struct notifier_block *nb) |
| 21 | { |
| 22 | return 0; |
| 23 | } |
| 24 | |
Michael Grundy | 4ba069b | 2006-09-20 15:58:39 +0200 | [diff] [blame] | 25 | enum die_val { |
| 26 | DIE_OOPS = 1, |
| 27 | DIE_BPT, |
| 28 | DIE_SSTEP, |
| 29 | DIE_PANIC, |
| 30 | DIE_NMI, |
| 31 | DIE_DIE, |
| 32 | DIE_NMIWATCHDOG, |
| 33 | DIE_KERNELDEBUG, |
| 34 | DIE_TRAP, |
| 35 | DIE_GPF, |
| 36 | DIE_CALL, |
| 37 | DIE_NMI_IPI, |
Michael Grundy | 4ba069b | 2006-09-20 15:58:39 +0200 | [diff] [blame] | 38 | }; |
| 39 | |
Heiko Carstens | 2b67fc4 | 2007-02-05 21:16:47 +0100 | [diff] [blame] | 40 | extern void die(const char *, struct pt_regs *, long); |
| 41 | |
Michael Grundy | 4ba069b | 2006-09-20 15:58:39 +0200 | [diff] [blame] | 42 | #endif |