move die notifier handling to common code
[linux-2.6-block.git] / include / asm-powerpc / kdebug.h
CommitLineData
bbeb3f4c
SR
1#ifndef _ASM_POWERPC_KDEBUG_H
2#define _ASM_POWERPC_KDEBUG_H
88ced031 3#ifdef __KERNEL__
14cf11af
PM
4
5/* nearly identical to x86_64/i386 code */
6
7#include <linux/notifier.h>
8
4f9e87c0
AK
9extern int register_page_fault_notifier(struct notifier_block *);
10extern int unregister_page_fault_notifier(struct notifier_block *);
e041c683 11extern struct atomic_notifier_head powerpc_die_chain;
14cf11af
PM
12
13/* Grossly misnamed. */
14enum die_val {
15 DIE_OOPS = 1,
16 DIE_IABR_MATCH,
17 DIE_DABR_MATCH,
18 DIE_BPT,
19 DIE_SSTEP,
20 DIE_PAGE_FAULT,
21};
22
88ced031 23#endif /* __KERNEL__ */
bbeb3f4c 24#endif /* _ASM_POWERPC_KDEBUG_H */