traps.h 796 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_CSKY_TRAPS_H
  3. #define __ASM_CSKY_TRAPS_H
  4. #define VEC_RESET 0
  5. #define VEC_ALIGN 1
  6. #define VEC_ACCESS 2
  7. #define VEC_ZERODIV 3
  8. #define VEC_ILLEGAL 4
  9. #define VEC_PRIV 5
  10. #define VEC_TRACE 6
  11. #define VEC_BREAKPOINT 7
  12. #define VEC_UNRECOVER 8
  13. #define VEC_SOFTRESET 9
  14. #define VEC_AUTOVEC 10
  15. #define VEC_FAUTOVEC 11
  16. #define VEC_HWACCEL 12
  17. #define VEC_TLBMISS 14
  18. #define VEC_TLBMODIFIED 15
  19. #define VEC_TRAP0 16
  20. #define VEC_TRAP1 17
  21. #define VEC_TRAP2 18
  22. #define VEC_TRAP3 19
  23. #define VEC_TLBINVALIDL 20
  24. #define VEC_TLBINVALIDS 21
  25. #define VEC_PRFL 29
  26. #define VEC_FPE 30
  27. extern void *vec_base[];
  28. #define VEC_INIT(i, func) \
  29. do { \
  30. vec_base[i] = (void *)func; \
  31. } while (0)
  32. void csky_alignment(struct pt_regs *regs);
  33. #endif /* __ASM_CSKY_TRAPS_H */