1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #ifndef __ASM_CSKY_TRAPS_H
5 #define __ASM_CSKY_TRAPS_H
14 #define VEC_BREAKPOINT 7
15 #define VEC_UNRECOVER 8
16 #define VEC_SOFTRESET 9
17 #define VEC_AUTOVEC 10
18 #define VEC_FAUTOVEC 11
19 #define VEC_HWACCEL 12
21 #define VEC_TLBMISS 14
22 #define VEC_TLBMODIFIED 15
29 #define VEC_TLBINVALIDL 20
30 #define VEC_TLBINVALIDS 21
35 extern void *vec_base
[];
37 #define VEC_INIT(i, func) \
39 vec_base[i] = (void *)func; \
42 void csky_alignment(struct pt_regs
*regs
);
44 #endif /* __ASM_CSKY_TRAPS_H */