1 #ifndef _SPARC64_KDEBUG_H
2 #define _SPARC64_KDEBUG_H
4 /* Nearly identical to x86_64/i386 code. */
6 #include <linux/notifier.h>
18 extern int register_die_notifier(struct notifier_block
*);
19 extern int unregister_die_notifier(struct notifier_block
*);
20 extern int register_page_fault_notifier(struct notifier_block
*);
21 extern int unregister_page_fault_notifier(struct notifier_block
*);
22 extern struct atomic_notifier_head sparc64die_chain
;
24 extern void bad_trap(struct pt_regs
*, long);
26 /* Grossly misnamed. */
29 DIE_DEBUG
, /* ta 0x70 */
30 DIE_DEBUG_2
, /* ta 0x71 */
39 static inline int notify_die(enum die_val val
,char *str
, struct pt_regs
*regs
,
40 long err
, int trap
, int sig
)
42 struct die_args args
= { .regs
= regs
,
48 return atomic_notifier_call_chain(&sparc64die_chain
, val
, &args
);