| * Feb 2006 Ported to s390 <grundym@us.ibm.com> |
| #include <linux/notifier.h> |
| /* Note - you should never unregister because that can race with NMIs. |
| * If you really want to do it first unregister - then synchronize_sched |
| extern int register_die_notifier(struct notifier_block *); |
| extern int unregister_die_notifier(struct notifier_block *); |
| extern int register_page_fault_notifier(struct notifier_block *); |
| extern int unregister_page_fault_notifier(struct notifier_block *); |
| extern struct atomic_notifier_head s390die_chain; |
| static inline int notify_die(enum die_val val, const char *str, |
| struct pt_regs *regs, long err, int trap, int sig) |
| return atomic_notifier_call_chain(&s390die_chain, val, &args); |
| extern void die(const char *, struct pt_regs *, long); |