Miscellaneous RISC-V compiler updates
[akaros.git] / kern / arch / riscv / trap.c
index c148fc7..446d9b9 100644 (file)
@@ -334,7 +334,7 @@ handle_fault_fetch(trapframe_t* state)
                panic("Instruction Page Fault in the Kernel at %p!", state->badvaddr);
        }
        
-       if(handle_page_fault(current, state->badvaddr, PROT_READ))
+       if(handle_page_fault(current, state->badvaddr, PROT_EXEC))
                unhandled_trap(state, "Instruction Page Fault");
 }