From eb1fba5d790eca34fc3f556cb3eca22b8f5b7f30 Mon Sep 17 00:00:00 2001 From: Daniel Lustig Date: Mon, 19 Jul 2021 02:15:30 -0400 Subject: Fix __clear_cache(0, 0) compilation issue (#30) See also https://github.com/riscv/riscv-pk/pull/240 --- v/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v/vm.c b/v/vm.c index d03f3b1..9802fb7 100644 --- a/v/vm.c +++ b/v/vm.c @@ -172,7 +172,7 @@ void handle_fault(uintptr_t addr, uintptr_t cause) user_llpt[addr/PGSIZE] = new_pte; flush_page(addr); - __builtin___clear_cache(0,0); + asm volatile ("fence.i"); } void handle_trap(trapframe_t* tf) -- cgit v1.1