add kernel entry

This commit is contained in:
nub31
2025-08-22 21:31:58 +02:00
parent f219bc7fa3
commit 05442d0725
3 changed files with 9 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ mov al, 0x3
int 0x10
CODE_SEG equ gdt_code - gdt_start
DATA_SEG equ gdt_data - gdt_start
cli
lgdt [gdt_descriptor]
@@ -37,6 +38,8 @@ mov cr0, eax
jmp CODE_SEG:start_protected_mode
jmp $
BOOT_DISK: db 0
gdt_start:
gdt_null:
dd 0x0