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

Kernel: Regions should be mapped into a PageDirectory, not a Process

This patch changes the parameter to Region::map() to be a PageDirectory
since that matches how we think about the memory model:

Regions are views onto VMObjects, and are mapped into PageDirectories.
Each Process has a PageDirectory. The kernel also has a PageDirectory.
This commit is contained in:
Andreas Kling 2019-11-03 20:48:35 +01:00
parent 2cfc43c982
commit 3dce0f23f4
4 changed files with 9 additions and 9 deletions

View file

@ -216,7 +216,7 @@ void Region::unmap(ShouldDeallocateVirtualMemoryRange deallocate_range)
release_page_directory();
}
void Region::map(Process& process)
void Region::map(PageDirectory& page_directory)
{
MM.map_region_at_address(process.page_directory(), *this, vaddr());
MM.map_region_at_address(page_directory, *this, vaddr());
}