1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #ifndef _ASM_X86_TRAPNR_H 3 #define _ASM_X86_TRAPNR_H 4 5 /* 6 * Event type codes used by FRED, Intel VT-x a 7 */ 8 #define EVENT_TYPE_EXTINT 0 // Ext 9 #define EVENT_TYPE_RESERVED 1 10 #define EVENT_TYPE_NMI 2 // NMI 11 #define EVENT_TYPE_HWEXC 3 // Har 12 #define EVENT_TYPE_SWINT 4 // INT 13 #define EVENT_TYPE_PRIV_SWEXC 5 // INT 14 #define EVENT_TYPE_SWEXC 6 // INT 15 #define EVENT_TYPE_OTHER 7 // FRE 16 17 /* Interrupts/Exceptions */ 18 19 #define X86_TRAP_DE 0 /* Div 20 #define X86_TRAP_DB 1 /* Deb 21 #define X86_TRAP_NMI 2 /* Non 22 #define X86_TRAP_BP 3 /* Bre 23 #define X86_TRAP_OF 4 /* Ove 24 #define X86_TRAP_BR 5 /* Bou 25 #define X86_TRAP_UD 6 /* Inv 26 #define X86_TRAP_NM 7 /* Dev 27 #define X86_TRAP_DF 8 /* Dou 28 #define X86_TRAP_OLD_MF 9 /* Cop 29 #define X86_TRAP_TS 10 /* Inv 30 #define X86_TRAP_NP 11 /* Seg 31 #define X86_TRAP_SS 12 /* Sta 32 #define X86_TRAP_GP 13 /* Gen 33 #define X86_TRAP_PF 14 /* Pag 34 #define X86_TRAP_SPURIOUS 15 /* Spu 35 #define X86_TRAP_MF 16 /* x87 36 #define X86_TRAP_AC 17 /* Ali 37 #define X86_TRAP_MC 18 /* Mac 38 #define X86_TRAP_XF 19 /* SIM 39 #define X86_TRAP_VE 20 /* Vir 40 #define X86_TRAP_CP 21 /* Con 41 #define X86_TRAP_VC 29 /* VMM 42 #define X86_TRAP_IRET 32 /* IRE 43 44 #endif 45
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.