[PATCH] md: convert 'faulty' and 'in_sync' fields to bits in 'flags' field
[linux-2.6/zen-sources.git] / include / asm-powerpc / kdebug.h
blob9dcbac674811b6094511cb854c5fa4ede8d3156b
1 #ifndef _ASM_POWERPC_KDEBUG_H
2 #define _ASM_POWERPC_KDEBUG_H
4 /* nearly identical to x86_64/i386 code */
6 #include <linux/notifier.h>
8 struct pt_regs;
10 struct die_args {
11 struct pt_regs *regs;
12 const char *str;
13 long err;
14 int trapnr;
15 int signr;
19 Note - you should never unregister because that can race with NMIs.
20 If you really want to do it first unregister - then synchronize_sched -
21 then free.
23 int register_die_notifier(struct notifier_block *nb);
24 extern struct notifier_block *powerpc_die_chain;
26 /* Grossly misnamed. */
27 enum die_val {
28 DIE_OOPS = 1,
29 DIE_IABR_MATCH,
30 DIE_DABR_MATCH,
31 DIE_BPT,
32 DIE_SSTEP,
33 DIE_PAGE_FAULT,
36 static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig)
38 struct die_args args = { .regs=regs, .str=str, .err=err, .trapnr=trap,.signr=sig };
39 return notifier_call_chain(&powerpc_die_chain, val, &args);
42 #endif /* _ASM_POWERPC_KDEBUG_H */