mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 19:45:08 +00: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
|
// run. If we do, then Singleton would get re-initialized, causing
|
||||||
// the memory manager to be initialized twice!
|
// the memory manager to be initialized twice!
|
||||||
static MemoryManager* s_the;
|
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 };
|
RecursiveSpinlock s_mm_lock { LockRank::MemoryManager };
|
||||||
|
|
||||||
MemoryManager& MemoryManager::the()
|
MemoryManager& MemoryManager::the()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue