utrap.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * include/asm/utrap.h
  4. *
  5. * Copyright (C) 1997 Jakub Jelinek ([email protected])
  6. */
  7. #ifndef __ASM_SPARC64_UTRAP_H
  8. #define __ASM_SPARC64_UTRAP_H
  9. #define UT_INSTRUCTION_EXCEPTION 1
  10. #define UT_INSTRUCTION_ERROR 2
  11. #define UT_INSTRUCTION_PROTECTION 3
  12. #define UT_ILLTRAP_INSTRUCTION 4
  13. #define UT_ILLEGAL_INSTRUCTION 5
  14. #define UT_PRIVILEGED_OPCODE 6
  15. #define UT_FP_DISABLED 7
  16. #define UT_FP_EXCEPTION_IEEE_754 8
  17. #define UT_FP_EXCEPTION_OTHER 9
  18. #define UT_TAG_OVERVIEW 10
  19. #define UT_DIVISION_BY_ZERO 11
  20. #define UT_DATA_EXCEPTION 12
  21. #define UT_DATA_ERROR 13
  22. #define UT_DATA_PROTECTION 14
  23. #define UT_MEM_ADDRESS_NOT_ALIGNED 15
  24. #define UT_PRIVILEGED_ACTION 16
  25. #define UT_ASYNC_DATA_ERROR 17
  26. #define UT_TRAP_INSTRUCTION_16 18
  27. #define UT_TRAP_INSTRUCTION_17 19
  28. #define UT_TRAP_INSTRUCTION_18 20
  29. #define UT_TRAP_INSTRUCTION_19 21
  30. #define UT_TRAP_INSTRUCTION_20 22
  31. #define UT_TRAP_INSTRUCTION_21 23
  32. #define UT_TRAP_INSTRUCTION_22 24
  33. #define UT_TRAP_INSTRUCTION_23 25
  34. #define UT_TRAP_INSTRUCTION_24 26
  35. #define UT_TRAP_INSTRUCTION_25 27
  36. #define UT_TRAP_INSTRUCTION_26 28
  37. #define UT_TRAP_INSTRUCTION_27 29
  38. #define UT_TRAP_INSTRUCTION_28 30
  39. #define UT_TRAP_INSTRUCTION_29 31
  40. #define UT_TRAP_INSTRUCTION_30 32
  41. #define UT_TRAP_INSTRUCTION_31 33
  42. #define UTH_NOCHANGE (-1)
  43. #ifndef __ASSEMBLY__
  44. typedef int utrap_entry_t;
  45. typedef void *utrap_handler_t;
  46. #endif /* __ASSEMBLY__ */
  47. #endif /* !(__ASM_SPARC64_PROCESSOR_H) */