mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
Kernel: Aggregate TLB flush requests for Regions for SMP
Rather than sending one TLB flush request for each page, aggregate them so that we're not spamming the other processors with FlushTLB IPIs.
This commit is contained in:
parent
56126d7a45
commit
06d50f64b0
3 changed files with 28 additions and 13 deletions
|
@ -1405,7 +1405,7 @@ void Processor::flush_tlb_local(VirtualAddress vaddr, size_t page_count)
|
|||
while (page_count > 0) {
|
||||
asm volatile("invlpg %0"
|
||||
:
|
||||
: "m"(*(char*)vaddr.get())
|
||||
: "m"(*ptr)
|
||||
: "memory");
|
||||
ptr += PAGE_SIZE;
|
||||
page_count--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue