Espresso 0.0.1e

This commit is contained in:
2025-07-04 14:23:29 -05:00
parent dd11e15c3b
commit dbaee2c881
17 changed files with 215 additions and 20 deletions

14
arch/x86/gdt.asm Normal file
View File

@ -0,0 +1,14 @@
global gdt_flush
gdt_flush:
mov eax, [esp + 4]
lgdt [eax]
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
ret