mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
Kernel: Skip unnecessary TLB flush when growing kmalloc heap
When adding entirely new page table mappings, we don't need to flush the TLB since they were not present before.
This commit is contained in:
parent
de05223122
commit
cfc9ce66d9
1 changed files with 0 additions and 2 deletions
|
@ -267,8 +267,6 @@ struct KmallocGlobalData {
|
|||
pte->set_present(true);
|
||||
}
|
||||
|
||||
MM.flush_tlb(&MM.kernel_page_directory(), new_subheap_base, new_subheap_size / PAGE_SIZE);
|
||||
|
||||
add_subheap(new_subheap_base.as_ptr(), new_subheap_size);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue