1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 17:05:06 +00:00

Kernel: Remove MemoryManager::region_tree() accessor

Let's not have a way to grab at the RegionTree from outside of MM.
This commit is contained in:
Andreas Kling 2022-04-05 12:41:46 +02:00
parent f8d798b667
commit a3db0ab14f
2 changed files with 1 additions and 3 deletions

View file

@ -663,7 +663,7 @@ Region* MemoryManager::kernel_region_from_vaddr(VirtualAddress address)
if (is_user_address(address))
return nullptr;
return MM.region_tree().find_region_containing(address);
return MM.m_region_tree.find_region_containing(address);
}
Region* MemoryManager::find_user_region_from_vaddr_no_lock(AddressSpace& space, VirtualAddress vaddr)