pmap tlb shootdowns

This commit is contained in:
2026-10-15 00:33:23 +02:00
parent d84232c394
commit 12e8331752
9 changed files with 189 additions and 13 deletions
+1
View File
@@ -162,6 +162,7 @@ void arch_task_fini(struct arch_task_context* context) {
const uintptr_t fpu_base = (uintptr_t)context->fpu_region;
for (size_t i = 0; i < fpu_size; i += page_size)
pmap_unmap(&kernel_vma.pmap, fpu_base + i);
pmap_shootdown(&kernel_vma.pmap);
mem_phys_free(context->fpu_phys, ALIGN_UP(fpu_size, page_size) / page_size);
vm_free(fpu_base, fpu_size);