Complete: First working Bootloader to kernel enviorment

This commit is contained in:
AfonsoCMSousa
2025-11-14 22:57:18 +00:00
parent babc45f96b
commit 19d4a05043
3 changed files with 3 additions and 3 deletions
Executable
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -18,7 +18,8 @@ _start:
; Load the gdt_ptr
lgdt [gdt_ptr]
mov cr3, pml4_table
mov eax, pml4_table
mov cr3, eax ; Load the PML4 table into CR3
mov eax, cr4
or eax, 0x20 ; Enable PAE
+1 -2
View File
@@ -1,5 +1,4 @@
ENTRY(_start);
FORMAT(elf64-x86-64);
ENTRY(_start)
SECTIONS
{