xref: /openbmc/linux/arch/x86/include/asm/trapnr.h (revision cbecf716ca618fd44feda6bd9a64a8179d031fc5)
1877f183fSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0 */
2877f183fSThomas Gleixner #ifndef _ASM_X86_TRAPNR_H
3877f183fSThomas Gleixner #define _ASM_X86_TRAPNR_H
4877f183fSThomas Gleixner 
5877f183fSThomas Gleixner /* Interrupts/Exceptions */
6877f183fSThomas Gleixner 
7877f183fSThomas Gleixner #define X86_TRAP_DE		 0	/* Divide-by-zero */
8877f183fSThomas Gleixner #define X86_TRAP_DB		 1	/* Debug */
9877f183fSThomas Gleixner #define X86_TRAP_NMI		 2	/* Non-maskable Interrupt */
10877f183fSThomas Gleixner #define X86_TRAP_BP		 3	/* Breakpoint */
11877f183fSThomas Gleixner #define X86_TRAP_OF		 4	/* Overflow */
12877f183fSThomas Gleixner #define X86_TRAP_BR		 5	/* Bound Range Exceeded */
13877f183fSThomas Gleixner #define X86_TRAP_UD		 6	/* Invalid Opcode */
14877f183fSThomas Gleixner #define X86_TRAP_NM		 7	/* Device Not Available */
15877f183fSThomas Gleixner #define X86_TRAP_DF		 8	/* Double Fault */
16877f183fSThomas Gleixner #define X86_TRAP_OLD_MF		 9	/* Coprocessor Segment Overrun */
17877f183fSThomas Gleixner #define X86_TRAP_TS		10	/* Invalid TSS */
18877f183fSThomas Gleixner #define X86_TRAP_NP		11	/* Segment Not Present */
19877f183fSThomas Gleixner #define X86_TRAP_SS		12	/* Stack Segment Fault */
20877f183fSThomas Gleixner #define X86_TRAP_GP		13	/* General Protection Fault */
21877f183fSThomas Gleixner #define X86_TRAP_PF		14	/* Page Fault */
22877f183fSThomas Gleixner #define X86_TRAP_SPURIOUS	15	/* Spurious Interrupt */
23877f183fSThomas Gleixner #define X86_TRAP_MF		16	/* x87 Floating-Point Exception */
24877f183fSThomas Gleixner #define X86_TRAP_AC		17	/* Alignment Check */
25877f183fSThomas Gleixner #define X86_TRAP_MC		18	/* Machine Check */
26877f183fSThomas Gleixner #define X86_TRAP_XF		19	/* SIMD Floating-Point Exception */
27877f183fSThomas Gleixner #define X86_TRAP_VE		20	/* Virtualization Exception */
28877f183fSThomas Gleixner #define X86_TRAP_CP		21	/* Control Protection Exception */
29*29dcc60fSJoerg Roedel #define X86_TRAP_VC		29	/* VMM Communication Exception */
30877f183fSThomas Gleixner #define X86_TRAP_IRET		32	/* IRET Exception */
31877f183fSThomas Gleixner 
32877f183fSThomas Gleixner #endif
33