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