riscv: Remove outdated condition in page_fault_handler
Since r366355 and r366284 we panic on access faults rather than treating them like page faults so this condition is never true. Reviewed by: jhb (mentor), markj, mhorne Approved by: jhb (mentor), markj, mhorne Differential Revision: https://reviews.freebsd.org/D26686
This commit is contained in:
parent
105708ca1c
commit
2152743f11
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366487
@ -220,8 +220,7 @@ page_fault_handler(struct trapframe *frame, int usermode)
|
||||
|
||||
va = trunc_page(stval);
|
||||
|
||||
if ((frame->tf_scause == EXCP_FAULT_STORE) ||
|
||||
(frame->tf_scause == EXCP_STORE_PAGE_FAULT)) {
|
||||
if (frame->tf_scause == EXCP_STORE_PAGE_FAULT) {
|
||||
ftype = VM_PROT_WRITE;
|
||||
} else if (frame->tf_scause == EXCP_INST_PAGE_FAULT) {
|
||||
ftype = VM_PROT_EXECUTE;
|
||||
|
Loading…
Reference in New Issue
Block a user