riscv: Handle supervisor instruction page faults
We should never take instruction page faults when in the kernel, but by using the standard page fault code we should get a more-informative message about faulting on a NOFAULT page rather than branching to the default case here and printing an "Unknown kernel exception ..." message. Reviewed by: jhb (mentor), markj Approved by: jhb (mentor), markj Differential Revision: https://reviews.freebsd.org/D26685
This commit is contained in:
parent
c300407979
commit
105708ca1c
@ -290,6 +290,7 @@ do_trap_supervisor(struct trapframe *frame)
|
||||
break;
|
||||
case EXCP_STORE_PAGE_FAULT:
|
||||
case EXCP_LOAD_PAGE_FAULT:
|
||||
case EXCP_INST_PAGE_FAULT:
|
||||
page_fault_handler(frame, 0);
|
||||
break;
|
||||
case EXCP_BREAKPOINT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user