trapnr.h 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_X86_TRAPNR_H
  3. #define _ASM_X86_TRAPNR_H
  4. /* Interrupts/Exceptions */
  5. #define X86_TRAP_DE 0 /* Divide-by-zero */
  6. #define X86_TRAP_DB 1 /* Debug */
  7. #define X86_TRAP_NMI 2 /* Non-maskable Interrupt */
  8. #define X86_TRAP_BP 3 /* Breakpoint */
  9. #define X86_TRAP_OF 4 /* Overflow */
  10. #define X86_TRAP_BR 5 /* Bound Range Exceeded */
  11. #define X86_TRAP_UD 6 /* Invalid Opcode */
  12. #define X86_TRAP_NM 7 /* Device Not Available */
  13. #define X86_TRAP_DF 8 /* Double Fault */
  14. #define X86_TRAP_OLD_MF 9 /* Coprocessor Segment Overrun */
  15. #define X86_TRAP_TS 10 /* Invalid TSS */
  16. #define X86_TRAP_NP 11 /* Segment Not Present */
  17. #define X86_TRAP_SS 12 /* Stack Segment Fault */
  18. #define X86_TRAP_GP 13 /* General Protection Fault */
  19. #define X86_TRAP_PF 14 /* Page Fault */
  20. #define X86_TRAP_SPURIOUS 15 /* Spurious Interrupt */
  21. #define X86_TRAP_MF 16 /* x87 Floating-Point Exception */
  22. #define X86_TRAP_AC 17 /* Alignment Check */
  23. #define X86_TRAP_MC 18 /* Machine Check */
  24. #define X86_TRAP_XF 19 /* SIMD Floating-Point Exception */
  25. #define X86_TRAP_VE 20 /* Virtualization Exception */
  26. #define X86_TRAP_CP 21 /* Control Protection Exception */
  27. #define X86_TRAP_VC 29 /* VMM Communication Exception */
  28. #define X86_TRAP_IRET 32 /* IRET Exception */
  29. #endif