mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +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: https://github.com/SerenityOS/serenity/commit/02e21de20af
|
@ -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…
Reference in a new issue