diff --git a/Kernel/Memory/MemoryManager.cpp b/Kernel/Memory/MemoryManager.cpp index 881422cf52..b623c7ee94 100644 --- a/Kernel/Memory/MemoryManager.cpp +++ b/Kernel/Memory/MemoryManager.cpp @@ -58,6 +58,11 @@ ErrorOr page_round_up(FlatPtr x) // run. If we do, then Singleton would get re-initialized, causing // the memory manager to be initialized twice! static MemoryManager* s_the; + +// The MM lock protects: +// - all data members of MemoryManager +// - the quickmap mechanism +// - the PTE/PDE mapping mechanism RecursiveSpinlock s_mm_lock { LockRank::MemoryManager }; MemoryManager& MemoryManager::the()