162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef _ASM_X86_TRAPNR_H
362306a36Sopenharmony_ci#define _ASM_X86_TRAPNR_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci/* Interrupts/Exceptions */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#define X86_TRAP_DE		 0	/* Divide-by-zero */
862306a36Sopenharmony_ci#define X86_TRAP_DB		 1	/* Debug */
962306a36Sopenharmony_ci#define X86_TRAP_NMI		 2	/* Non-maskable Interrupt */
1062306a36Sopenharmony_ci#define X86_TRAP_BP		 3	/* Breakpoint */
1162306a36Sopenharmony_ci#define X86_TRAP_OF		 4	/* Overflow */
1262306a36Sopenharmony_ci#define X86_TRAP_BR		 5	/* Bound Range Exceeded */
1362306a36Sopenharmony_ci#define X86_TRAP_UD		 6	/* Invalid Opcode */
1462306a36Sopenharmony_ci#define X86_TRAP_NM		 7	/* Device Not Available */
1562306a36Sopenharmony_ci#define X86_TRAP_DF		 8	/* Double Fault */
1662306a36Sopenharmony_ci#define X86_TRAP_OLD_MF		 9	/* Coprocessor Segment Overrun */
1762306a36Sopenharmony_ci#define X86_TRAP_TS		10	/* Invalid TSS */
1862306a36Sopenharmony_ci#define X86_TRAP_NP		11	/* Segment Not Present */
1962306a36Sopenharmony_ci#define X86_TRAP_SS		12	/* Stack Segment Fault */
2062306a36Sopenharmony_ci#define X86_TRAP_GP		13	/* General Protection Fault */
2162306a36Sopenharmony_ci#define X86_TRAP_PF		14	/* Page Fault */
2262306a36Sopenharmony_ci#define X86_TRAP_SPURIOUS	15	/* Spurious Interrupt */
2362306a36Sopenharmony_ci#define X86_TRAP_MF		16	/* x87 Floating-Point Exception */
2462306a36Sopenharmony_ci#define X86_TRAP_AC		17	/* Alignment Check */
2562306a36Sopenharmony_ci#define X86_TRAP_MC		18	/* Machine Check */
2662306a36Sopenharmony_ci#define X86_TRAP_XF		19	/* SIMD Floating-Point Exception */
2762306a36Sopenharmony_ci#define X86_TRAP_VE		20	/* Virtualization Exception */
2862306a36Sopenharmony_ci#define X86_TRAP_CP		21	/* Control Protection Exception */
2962306a36Sopenharmony_ci#define X86_TRAP_VC		29	/* VMM Communication Exception */
3062306a36Sopenharmony_ci#define X86_TRAP_IRET		32	/* IRET Exception */
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci#endif
33