1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 22:28:12 +00:00

Kernel: Expand the kernel memory slot from 8 MiB to 16 MiB

We were only 448 KiB away from filling up the old slot size we reserve
for the kernel above the 3 GiB mark. This expands the slot to 16 MiB,
which allows us to continue booting the kernel until somebody takes
the time to improve our loader.
This commit is contained in:
Andreas Kling 2021-02-23 21:50:18 +01:00
parent 4ba36c6a49
commit 8cd5477e54
2 changed files with 11 additions and 7 deletions

View file

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