mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +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
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