Kernel: Add mechanism to identity map the lowest 2MB

This commit is contained in:
Tom 2020-06-01 22:55:09 -06:00 committed by Andreas Kling
commit 841364b609
Notes: sideshowbarker 2024-07-19 05:50:08 +09:00
7 changed files with 40 additions and 12 deletions

View file

@ -59,6 +59,7 @@ extern "C" PageDirectoryEntry boot_pd3[1024];
PageDirectory::PageDirectory()
{
m_range_allocator.initialize_with_range(VirtualAddress(0xc0800000), 0x3f000000);
m_identity_range_allocator.initialize_with_range(VirtualAddress(FlatPtr(0x00000000)), 0x00200000);
// Adopt the page tables already set up by boot.S
PhysicalAddress boot_pdpt_paddr(virtual_to_low_physical((FlatPtr)boot_pdpt));