core: setup recusive paging in boot.s

This commit is contained in:
2025-11-28 16:20:31 +01:00
parent 7819b4a02d
commit 5591120deb

View File

@ -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