svn commit: r318354 - head/sys/amd64/amd64

Conrad Meyer cem at FreeBSD.org
Tue May 16 16:20:24 UTC 2017


Author: cem
Date: Tue May 16 16:20:22 2017
New Revision: 318354
URL: https://svnweb.freebsd.org/changeset/base/318354

Log:
  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).
  
  Reported by:	vangyzen
  Reviewed by:	kib, alc
  Sponsored by:	Dell EMC Isilon
  Differential Revision:	https://reviews.freebsd.org/D4030

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

Modified: head/sys/amd64/amd64/pmap.c
==============================================================================
--- head/sys/amd64/amd64/pmap.c	Tue May 16 14:21:37 2017	(r318353)
+++ head/sys/amd64/amd64/pmap.c	Tue May 16 16:20:22 2017	(r318354)
@@ -6691,7 +6691,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-all mailing list