Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2017 00:33:48 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r318509 - stable/11/sys/amd64/amd64
Message-ID:  <201705190033.v4J0Xm6n015773@repo.freebsd.org>

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



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