svn commit: r318509 - stable/11/sys/amd64/amd64

Eric van Gyzen vangyzen at FreeBSD.org
Fri May 19 00:33:49 UTC 2017


Author: vangyzen
Date: Fri May 19 00:33:48 2017
New Revision: 318509
URL: https://svnweb.freebsd.org/changeset/base/318509

Log:
  MFC r318354 (by cem)
  
  Correct page frame mask constant used in pmap_change_attr_locked
  
  This was introduced in r290156.  It's present in 11.0, but not any 10.x
  release unless someone decided to MFC it.
  
  It affects ordinary pages right above the DMAP limit, which is effectively
  system memory rounded up to a 1 GB (3rd level superpage) boundary (or up to
  a minimum of 4 GB, on small systems).
  
  Sponsored by:	Dell EMC

Modified:
  stable/11/sys/amd64/amd64/pmap.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/amd64/amd64/pmap.c
==============================================================================
--- stable/11/sys/amd64/amd64/pmap.c	Fri May 19 00:25:09 2017	(r318508)
+++ stable/11/sys/amd64/amd64/pmap.c	Fri May 19 00:33:48 2017	(r318509)
@@ -6727,7 +6727,7 @@ pmap_change_attr_locked(vm_offset_t va, 
 				changed = TRUE;
 			}
 			if (tmpva >= VM_MIN_KERNEL_ADDRESS &&
-			    (*pte & PG_PS_FRAME) < dmaplimit) {
+			    (*pte & PG_FRAME) < dmaplimit) {
 				if (pa_start == pa_end) {
 					/* Start physical address run. */
 					pa_start = *pte & PG_FRAME;


More information about the svn-src-stable mailing list