Fixed bug in GDT length calculation in bootloader. Kernel now loads its own GDT so it doesn't clobber itself while touching memory. ATAPIO now loads its own copy of the boot sector so it isn't reliant on 0x7000 being mapped. Removed debug printf statements from a lot of places.

This commit is contained in:
2021-10-12 21:41:31 +01:00
parent e2bb3ff634
commit f44d4ad768
10 changed files with 141 additions and 28 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ data:
db 0
gdt_end:
gdt_desc:
dw gdt_desc - gdt_end - 1
dw gdt_end - gdt - 1
dd gdt
TIMES 510 - ($ - $$) db 0