Kernel: Specify a lock rank for s_mm_lock

This commit is contained in:
Brian Gianforcaro 2021-09-07 03:02:57 -07:00 committed by Andreas Kling
parent 88c27fc38e
commit abc523a5ab

View file

@ -47,7 +47,7 @@ namespace Kernel::Memory {
// run. If we do, then Singleton would get re-initialized, causing
// the memory manager to be initialized twice!
static MemoryManager* s_the;
RecursiveSpinlock s_mm_lock;
RecursiveSpinlock s_mm_lock { LockRank::MemoryManager };
MemoryManager& MemoryManager::the()
{