Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 2020 13:03:31 +0000 (UTC)
From:      Jessica Clarke <jrtc27@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r366487 - head/sys/riscv/riscv
Message-ID:  <202010061303.096D3VG6094297@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010061303.096D3VG6094297>