some cleanup from debugging and todos

This commit is contained in:
2025-06-01 21:00:26 -04:00
parent 4c938a0855
commit 3ffb3aa181
5 changed files with 16 additions and 10 deletions

View File

@ -8,8 +8,12 @@ setGdt:
mov eax, [esp + 8]
mov [gdtr + 2], eax
lgdt [gdtr]
jmp 0x08:reload_CS ; 0x08 is a stand in for the code segment
reload_CS:
ret
global reloadSegments
reloadSegments:
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