mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-20 10:02:51 +00:00
Kernel: Make sure super pages are in the first 16MiB of physical memory
This was broken by recent changes.
This commit is contained in:
parent
e01cc39eed
commit
a364f5c7b7
Notes:
sideshowbarker
2024-07-18 08:45:27 +09:00
Author: https://github.com/gunnarbeutner
Commit: a364f5c7b7
Pull-request: https://github.com/SerenityOS/serenity/pull/8879
3 changed files with 15 additions and 0 deletions
|
@ -300,6 +300,9 @@ UNMAP_AFTER_INIT void MemoryManager::parse_memory_map()
|
|||
m_user_physical_regions.append(PhysicalRegion::try_create(range.lower, range.upper).release_nonnull());
|
||||
}
|
||||
|
||||
// Super pages are guaranteed to be in the first 16MB of physical memory
|
||||
VERIFY(virtual_to_low_physical((FlatPtr)super_pages) + sizeof(super_pages) < 0x1000000);
|
||||
|
||||
// Append statically-allocated super physical physical_region.
|
||||
m_super_physical_regions.append(PhysicalRegion::try_create(
|
||||
PhysicalAddress(virtual_to_low_physical(FlatPtr(super_pages))),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue