mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 17:15:44 +00:00
Kernel: Don't require MM lock for Region::set_page_directory()
The MM lock is not required for this, it's just a simple ref-counted pointer assignment.
This commit is contained in:
@@ -280,7 +280,6 @@ void Region::unmap_with_locks_held(ShouldFlushTLB should_flush_tlb, SpinlockLock
|
||||
void Region::set_page_directory(PageDirectory& page_directory)
|
||||
{
|
||||
VERIFY(!m_page_directory || m_page_directory == &page_directory);
|
||||
VERIFY(s_mm_lock.is_locked_by_current_processor());
|
||||
m_page_directory = page_directory;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user