summaryrefslogtreecommitdiff
path: root/Kernel/Memory/PageDirectory.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-22 01:37:17 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-22 03:34:10 +0200
commit55adace359bfda606b445b5177ce5138687d4626 (patch)
tree429f7e24f71cde34f8f54f10b8ae43b74c514488 /Kernel/Memory/PageDirectory.cpp
parent7d5d26b0481221d3ebf420de346cc33b3e003147 (diff)
downloadserenity-55adace359bfda606b445b5177ce5138687d4626.zip
Kernel: Rename SpinLock => Spinlock
Diffstat (limited to 'Kernel/Memory/PageDirectory.cpp')
-rw-r--r--Kernel/Memory/PageDirectory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Memory/PageDirectory.cpp b/Kernel/Memory/PageDirectory.cpp
index 138e0faa72..703b45d3ae 100644
--- a/Kernel/Memory/PageDirectory.cpp
+++ b/Kernel/Memory/PageDirectory.cpp
@@ -27,7 +27,7 @@ static HashMap<FlatPtr, PageDirectory*>& cr3_map()
RefPtr<PageDirectory> PageDirectory::find_by_cr3(FlatPtr cr3)
{
- ScopedSpinLock lock(s_mm_lock);
+ ScopedSpinlock lock(s_mm_lock);
return cr3_map().get(cr3).value_or({});
}
@@ -60,7 +60,7 @@ RefPtr<PageDirectory> PageDirectory::try_create_for_userspace(VirtualRangeAlloca
}
// NOTE: Take the MM lock since we need it for quickmap.
- ScopedSpinLock lock(s_mm_lock);
+ ScopedSpinlock lock(s_mm_lock);
#if ARCH(X86_64)
directory->m_pml4t = MM.allocate_user_physical_page();
@@ -159,7 +159,7 @@ UNMAP_AFTER_INIT void PageDirectory::allocate_kernel_directory()
PageDirectory::~PageDirectory()
{
- ScopedSpinLock lock(s_mm_lock);
+ ScopedSpinlock lock(s_mm_lock);
if (m_space)
cr3_map().remove(cr3());
}