Skip to content
Snippets Groups Projects
Commit fc0ece50 authored by Videau Luc's avatar Videau Luc
Browse files

add handle page fault on instruction page fault

parent 3404da2a
No related branches found
Tags tp2-act-7-2
No related merge requests found
......@@ -100,7 +100,7 @@ usertrap(void)
intr_on();
syscall();
} else if (scause == 0xf || scause == 0xd) {
} else if (scause == 0xf || scause == 0xd || scause == 0xc) {
handle_page_fault(p, scause, r_stval(), r_sepc());
} else if((which_dev = devintr()) != 0){
// ok
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment