move die notifier handling to common code
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / asm-sparc64 / kdebug.h
CommitLineData
1da177e4
LT
1#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
d98f8f05
AK
10extern int register_page_fault_notifier(struct notifier_block *);
11extern int unregister_page_fault_notifier(struct notifier_block *);
1da177e4
LT
12
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
1da177e4 28#endif