mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Kernel: Remove unused MemoryManager::find_region_from_vaddr()
This commit is contained in:
parent
a8d86cc533
commit
055726ecf5
Notes:
sideshowbarker
2024-07-18 09:19:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/055726ecf5e
@ -593,14 +593,6 @@ Region* MemoryManager::find_user_region_from_vaddr(Space& space, VirtualAddress
|
||||
return space.find_region_containing({ vaddr, 1 });
|
||||
}
|
||||
|
||||
Region* MemoryManager::find_region_from_vaddr(Space& space, VirtualAddress vaddr)
|
||||
{
|
||||
ScopedSpinLock lock(s_mm_lock);
|
||||
if (auto* region = find_user_region_from_vaddr(space, vaddr))
|
||||
return region;
|
||||
return kernel_region_from_vaddr(vaddr);
|
||||
}
|
||||
|
||||
Region* MemoryManager::find_region_from_vaddr(VirtualAddress vaddr)
|
||||
{
|
||||
ScopedSpinLock lock(s_mm_lock);
|
||||
|
@ -186,7 +186,6 @@ public:
|
||||
callback(vmobject);
|
||||
}
|
||||
|
||||
static Region* find_region_from_vaddr(Space&, VirtualAddress);
|
||||
static Region* find_user_region_from_vaddr(Space&, VirtualAddress);
|
||||
|
||||
void dump_kernel_regions();
|
||||
|
Loading…
Reference in New Issue
Block a user