diff options
Diffstat (limited to 'pk')
-rw-r--r-- | pk/pk.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -8,6 +8,7 @@ #include "frontend.h" #include "bits.h" #include "usermem.h" +#include "flush_icache.h" #include <stdbool.h> elf_info current; @@ -174,7 +175,7 @@ static void run_loaded_program(size_t argc, char** argv, uintptr_t kstack_top) trapframe_t tf; init_tf(&tf, current.entry, stack_top); - __clear_cache(0, 0); + __riscv_flush_icache(); write_csr(sscratch, kstack_top); start_user(&tf); } |