Kernel: Map multiboot2 memory in PageTable initialization

It cannot be assumed that multiboot data lies between kernel_end
and 2 GiB mark, so I properly allocate virtual address space for it.
This commit is contained in:
2023-10-17 01:15:08 +03:00
parent 69a39b7077
commit c17cdb39d5
2 changed files with 16 additions and 12 deletions

View File

@@ -197,8 +197,6 @@ long_mode:
jmp *%rcx
higher_half:
addq $KERNEL_OFFSET, g_multiboot2_info
# call global constuctors
call _init