1
2
3
4
5
6
7
8 #ifndef _ASM_C6X_TRAPS_H
9 #define _ASM_C6X_TRAPS_H
10
11 #define EXCEPT_TYPE_NXF 31
12 #define EXCEPT_TYPE_EXC 30
13 #define EXCEPT_TYPE_IXF 1
14 #define EXCEPT_TYPE_SXF 0
15
16 #define EXCEPT_CAUSE_LBX (1 << 7)
17 #define EXCEPT_CAUSE_PRX (1 << 6)
18 #define EXCEPT_CAUSE_RAX (1 << 5)
19 #define EXCEPT_CAUSE_RCX (1 << 4)
20 #define EXCEPT_CAUSE_OPX (1 << 3)
21 #define EXCEPT_CAUSE_EPX (1 << 2)
22 #define EXCEPT_CAUSE_FPX (1 << 1)
23 #define EXCEPT_CAUSE_IFX (1 << 0)
24
25 struct exception_info {
26 char *kernel_str;
27 int signo;
28 int code;
29 };
30
31 extern int (*c6x_nmi_handler)(struct pt_regs *regs);
32
33 #endif