mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
VM: Always flush TLB for kernel page directory changes.
Since the kernel page directory is inherited by all other page directories, we should always flush the TLB when it's updated.
This commit is contained in:
parent
6956d161c4
commit
02e21de20a
Notes:
sideshowbarker
2024-07-19 13:48:24 +09:00
Author: https://github.com/awesomekling
Commit: 02e21de20a
1 changed files with 1 additions and 1 deletions
|
@ -32,6 +32,6 @@ void PageDirectory::flush(LinearAddress laddr)
|
|||
#endif
|
||||
if (!current)
|
||||
return;
|
||||
if (¤t->process().page_directory() == this)
|
||||
if (this == &MM.kernel_page_directory() || ¤t->process().page_directory() == this)
|
||||
MM.flush_tlb(laddr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue