1 #ifndef _SPARC64_KDEBUG_H
2 #define _SPARC64_KDEBUG_H
4 /* Nearly identical to x86_64/i386 code. */
6 #include <linux/notifier.h>
18 /* Note - you should never unregister because that can race with NMIs.
19 * If you really want to do it first unregister - then synchronize_kernel
22 int register_die_notifier(struct notifier_block
*nb
);
23 extern struct notifier_block
*sparc64die_chain
;
25 extern void bad_trap(struct pt_regs
*, long);
27 /* Grossly misnamed. */
30 DIE_DEBUG
, /* ta 0x70 */
31 DIE_DEBUG_2
, /* ta 0x71 */
40 static inline int notify_die(enum die_val val
,char *str
, struct pt_regs
*regs
,
41 long err
, int trap
, int sig
)
43 struct die_args args
= { .regs
= regs
,
49 return notifier_call_chain(&sparc64die_chain
, val
, &args
);