mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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
Notes:
sideshowbarker
2024-07-19 05:05:57 +09:00
Author: https://github.com/tomuta
Commit: 06d50f64b0
Pull-request: https://github.com/SerenityOS/serenity/pull/2714
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