Files
YukiOS/arch/x86_64/trap.zig

27 lines
900 B
Zig

pub const TrapType = enum(u8) {
DE = 0, // Divide-by-zero
DB = 1, // Debug
NMI = 2, // Non-maskable Interrupt
BP = 3, // Breakpoint
OF = 4, // Overflow
BR = 5, // Bound Range Exceeded
UD = 6, // Invalid Opcode
NM = 7, // Device Not Available
DF = 8, // Double Fault
OLD_MF = 9, // Coprocessor Segment Overrun
TS = 10, // Invalid TSS
NP = 11, // Segment Not Present
SS = 12, // Stack Segment Fault
GP = 13, // General Protection Fault
PF = 14, // Page Fault
SPURIOUS = 15, // Spurious Interrupt
MF = 16, // x87 Floating-Point Exception
AC = 17, // Alignment Check
MC = 18, // Machine Check
XF = 19, // SIMD Floating-Point Exception
VE = 20, // Virtualization Exception
CP = 21, // Control Protection Exception
VC = 29, // VMM Communication Exception
IRET = 32, // IRET Exception
};