Kernel: Don't map main bios area in page table initialization

This is only needed for RSDP lookup so it can be done with fast pages
This commit is contained in:
2024-10-14 11:31:40 +03:00
parent 55fbd09e45
commit 3edc1af560
3 changed files with 32 additions and 31 deletions

View File

@@ -168,14 +168,6 @@ namespace Kernel
prepare_fast_page();
// Map main bios area below 1 MiB
map_range_at(
0x000E0000,
P2V(0x000E0000),
0x00100000 - 0x000E0000,
PageTable::Flags::Present
);
// Map (phys_kernel_start -> phys_kernel_end) to (virt_kernel_start -> virt_kernel_end)
ASSERT((vaddr_t)g_kernel_start % PAGE_SIZE == 0);
map_range_at(