1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +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

@ -114,7 +114,7 @@ public:
m_access &= ~Access::Write;
}
void map(Process&);
void map(PageDirectory&);
enum class ShouldDeallocateVirtualMemoryRange {
No,
Yes,