summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lustig <dlustig@nvidia.com>2021-07-19 02:15:30 -0400
committerGitHub <noreply@github.com>2021-07-18 23:15:30 -0700
commiteb1fba5d790eca34fc3f556cb3eca22b8f5b7f30 (patch)
treefbd007a7cdb26509a6fd3eb5f83768d47ca1a383
parent1d9e7eaa85d9929d3f76b460c25ca26e1245a371 (diff)
downloadenv-eb1fba5d790eca34fc3f556cb3eca22b8f5b7f30.zip
env-eb1fba5d790eca34fc3f556cb3eca22b8f5b7f30.tar.gz
env-eb1fba5d790eca34fc3f556cb3eca22b8f5b7f30.tar.bz2
Fix __clear_cache(0, 0) compilation issue (#30)
See also https://github.com/riscv/riscv-pk/pull/240
-rw-r--r--v/vm.c2
1 files changed, 1 insertions, 1 deletions
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)