diff options
author | Daniel Lustig <dlustig@nvidia.com> | 2021-07-19 02:15:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-18 23:15:30 -0700 |
commit | eb1fba5d790eca34fc3f556cb3eca22b8f5b7f30 (patch) | |
tree | fbd007a7cdb26509a6fd3eb5f83768d47ca1a383 | |
parent | 1d9e7eaa85d9929d3f76b460c25ca26e1245a371 (diff) | |
download | env-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |