1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef __ASM_CSKY_TRAPS_H
4 #define __ASM_CSKY_TRAPS_H
13 #define VEC_BREAKPOINT 7
14 #define VEC_UNRECOVER 8
15 #define VEC_SOFTRESET 9
16 #define VEC_AUTOVEC 10
17 #define VEC_FAUTOVEC 11
18 #define VEC_HWACCEL 12
20 #define VEC_TLBMISS 14
21 #define VEC_TLBMODIFIED 15
28 #define VEC_TLBINVALIDL 20
29 #define VEC_TLBINVALIDS 21
34 extern void *vec_base[];
36 #define VEC_INIT(i, func) \
38 vec_base[i] = (void *)func; \
41 void csky_alignment(struct pt_regs *regs);
43 #endif /* __ASM_CSKY_TRAPS_H */