mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
Kernel: Add a comment about what the MM lock protects
This commit is contained in:
parent
75348bdfd3
commit
c14dda14c4
1 changed files with 5 additions and 0 deletions
|
@ -58,6 +58,11 @@ ErrorOr<FlatPtr> 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()
|
||||
|
|
Loading…
Add table
Reference in a new issue