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
commit 3dce0f23f4
Notes: sideshowbarker 2024-07-19 11:26:38 +09:00
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());
}