blob: f8032e73f384303dbfd790d1d8a0b3d2736d5ef3 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _SPARC64_KDEBUG_H
2#define _SPARC64_KDEBUG_H
3
4/* Nearly identical to x86_64/i386 code. */
5
6#include <linux/notifier.h>
7
8struct pt_regs;
9
Anil S Keshavamurthyd98f8f02006-06-26 00:25:27 -070010extern int register_page_fault_notifier(struct notifier_block *);
11extern int unregister_page_fault_notifier(struct notifier_block *);
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
13extern void bad_trap(struct pt_regs *, long);
14
15/* Grossly misnamed. */
16enum die_val {
17 DIE_OOPS = 1,
18 DIE_DEBUG, /* ta 0x70 */
19 DIE_DEBUG_2, /* ta 0x71 */
20 DIE_DIE,
21 DIE_TRAP,
22 DIE_TRAP_TL1,
23 DIE_GPF,
24 DIE_CALL,
25 DIE_PAGE_FAULT,
26};
27
Linus Torvalds1da177e2005-04-16 15:20:36 -070028#endif