svn commit: r366487 - head/sys/riscv/riscv
Jessica Clarke
jrtc27 at FreeBSD.org
Tue Oct 6 13:03:31 UTC 2020
Author: jrtc27
Date: Tue Oct 6 13:03:31 2020
New Revision: 366487
URL: https://svnweb.freebsd.org/changeset/base/366487
Log:
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
Modified:
head/sys/riscv/riscv/trap.c
Modified: head/sys/riscv/riscv/trap.c
==============================================================================
--- head/sys/riscv/riscv/trap.c Tue Oct 6 13:02:20 2020 (r366486)
+++ head/sys/riscv/riscv/trap.c Tue Oct 6 13:03:31 2020 (r366487)
@@ -220,8 +220,7 @@ page_fault_handler(struct trapframe *frame, int usermo
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;
More information about the svn-src-all
mailing list