diff --git a/sys/riscv/riscv/pmap.c b/sys/riscv/riscv/pmap.c --- a/sys/riscv/riscv/pmap.c +++ b/sys/riscv/riscv/pmap.c @@ -2419,7 +2419,7 @@ */ if ((oldpte & bits) != bits) pmap_store_bits(pte, bits); - sfence_vma(); + sfence_vma_page(va); rv = 1; done: PMAP_UNLOCK(pmap);