[SPARC64]: Optimize fault kprobe handling just like powerpc.
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-sparc64 / kdebug.h
blob627e3396a5f0c136bf486eada3a6706b76f68486
1 #ifndef _SPARC64_KDEBUG_H
2 #define _SPARC64_KDEBUG_H
4 /* Nearly identical to x86_64/i386 code. */
6 #include <linux/notifier.h>
8 struct pt_regs;
11 * These are only here because kprobes.c wants them to implement a
12 * blatant layering violation. Will hopefully go away soon once all
13 * architectures are updated.
15 static inline int register_page_fault_notifier(struct notifier_block *nb)
17 return 0;
19 static inline int unregister_page_fault_notifier(struct notifier_block *nb)
21 return 0;
24 extern void bad_trap(struct pt_regs *, long);
26 /* Grossly misnamed. */
27 enum die_val {
28 DIE_OOPS = 1,
29 DIE_DEBUG, /* ta 0x70 */
30 DIE_DEBUG_2, /* ta 0x71 */
31 DIE_DIE,
32 DIE_TRAP,
33 DIE_TRAP_TL1,
34 DIE_CALL,
35 DIE_PAGE_FAULT,
38 #endif