mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366486
|
@ -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…
Reference in a new issue