Espresso 0.0.0e

This commit is contained in:
2025-06-13 18:03:39 -05:00
parent 6d366537dd
commit 1e5b4a765b
40 changed files with 742 additions and 718 deletions

View File

@ -3,13 +3,12 @@ global gdt_flush
gdt_flush:
mov eax, [esp + 4]
lgdt [eax]
; Reload segment registers
mov ax, 0x10 ; Kernel data segment
jmp 0x08:.flush_label ; long jump to reload CS with new segment
.flush_label:
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
jmp 0x08:.flush ; Kernel code segment
.flush:
ret