diff --git a/src/boot.s b/src/boot.s index 20c1bba..50fd166 100644 --- a/src/boot.s +++ b/src/boot.s @@ -93,6 +93,10 @@ _start: movl $(boot_page_table1 - 0xC0000000 + 0x003), boot_page_directory - 0xC0000000 + 0 movl $(boot_page_table1 - 0xC0000000 + 0x003), boot_page_directory - 0xC0000000 + 768 * 4 + # Map the recusive paging + movl $(boot_page_directory - 0xC0000000 + 0x003), boot_page_directory - 0xC0000000 + 1023 * 4 + + # Set cr3 to the address of the boot_page_directory. movl $(boot_page_directory - 0xC0000000), %ecx movl %ecx, %cr3