[PATCH] uml: add -ffreestanding to CFLAGS
[linux/fpc-iii.git] / include / asm-powerpc / kdebug.h
blobc01786ab5fa645c6e333f8f87881a15e95589c5a
1 #ifndef _ASM_POWERPC_KDEBUG_H
2 #define _ASM_POWERPC_KDEBUG_H
3 #ifdef __KERNEL__
5 /* nearly identical to x86_64/i386 code */
7 #include <linux/notifier.h>
9 struct pt_regs;
11 struct die_args {
12 struct pt_regs *regs;
13 const char *str;
14 long err;
15 int trapnr;
16 int signr;
19 extern int register_die_notifier(struct notifier_block *);
20 extern int unregister_die_notifier(struct notifier_block *);
21 extern struct atomic_notifier_head powerpc_die_chain;
23 /* Grossly misnamed. */
24 enum die_val {
25 DIE_OOPS = 1,
26 DIE_IABR_MATCH,
27 DIE_DABR_MATCH,
28 DIE_BPT,
29 DIE_SSTEP,
30 DIE_PAGE_FAULT,
33 static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig)
35 struct die_args args = { .regs=regs, .str=str, .err=err, .trapnr=trap,.signr=sig };
36 return atomic_notifier_call_chain(&powerpc_die_chain, val, &args);
39 #endif /* __KERNEL__ */
40 #endif /* _ASM_POWERPC_KDEBUG_H */