holy crap im an idiot, i was getting constatnt gpf because i forgot to pop the stack

This commit is contained in:
2025-06-01 20:57:12 -04:00
parent ecc91fdc7d
commit 4c938a0855
7 changed files with 19 additions and 14 deletions

View File

@ -8,12 +8,8 @@ setGdt:
mov eax, [esp + 8]
mov [gdtr + 2], eax
lgdt [gdtr]
ret
global reloadSegments
reloadSegments:
jmp 0x08:.reload_CS ; 0x08 is a stand in for the code segment
.reload_CS:
jmp 0x08:reload_CS ; 0x08 is a stand in for the code segment
reload_CS:
mov ax, 0x10 ; stand in for the data segment
mov ds, ax
mov es, ax