feat(loader, kernel): impl part of loader and initialize kernel structure
This commit is contained in:
26
arch/x86_64/trap.zig
Normal file
26
arch/x86_64/trap.zig
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
};
|
||||
Reference in New Issue
Block a user