1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

Kernel: Don't expose a region's page directory to the outside world

Now that region manages its own mapping/unmapping, there's no need for
the outside world to be able to grab at its page directory.
This commit is contained in:
Andreas Kling 2019-11-04 00:26:00 +01:00
parent 6ed9cc4717
commit 0e8f1d7cb6
3 changed files with 8 additions and 11 deletions

View file

@ -365,7 +365,6 @@ bool MemoryManager::copy_on_write(Region& region, unsigned page_index_in_region)
bool MemoryManager::page_in_from_inode(Region& region, unsigned page_index_in_region)
{
ASSERT(region.page_directory());
ASSERT(region.vmobject().is_inode());
auto& vmobject = region.vmobject();