Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2019 20:31:29 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r350422 - head/sys/arm64/arm64
Message-ID:  <201907292031.x6TKVTwR093614@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Mon Jul 29 20:31:28 2019
New Revision: 350422
URL: https://svnweb.freebsd.org/changeset/base/350422

Log:
  Remove an unneeded trunc_page() in pmap_fault().
  
  Reported by:	alc
  MFC with:	r350004
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/arm64/arm64/pmap.c

Modified: head/sys/arm64/arm64/pmap.c
==============================================================================
--- head/sys/arm64/arm64/pmap.c	Mon Jul 29 20:26:01 2019	(r350421)
+++ head/sys/arm64/arm64/pmap.c	Mon Jul 29 20:31:28 2019	(r350422)
@@ -5790,7 +5790,7 @@ pmap_fault(pmap_t pmap, uint64_t esr, uint64_t far)
 		    (pmap_load(pte) & (ATTR_AP_RW_BIT | ATTR_SW_DBM)) ==
 		    (ATTR_AP(ATTR_AP_RO) | ATTR_SW_DBM)) {
 			pmap_clear_bits(pte, ATTR_AP_RW_BIT);
-			pmap_invalidate_page(pmap, trunc_page(far));
+			pmap_invalidate_page(pmap, far);
 			rv = KERN_SUCCESS;
 		}
 		PMAP_UNLOCK(pmap);



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