Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2012 15:50:15 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233185 - head/sys/amd64/amd64
Message-ID:  <201203191550.q2JFoFbU075227@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Mar 19 15:50:14 2012
New Revision: 233185
URL: http://svn.freebsd.org/changeset/base/233185

Log:
  Re-apply r233122 erronously reverted in r233168.
  
  Submitted by:	 jhb
  Pointy hat to:	 kib
  MFC after: 2 weeks

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

Modified: head/sys/amd64/amd64/pmap.c
==============================================================================
--- head/sys/amd64/amd64/pmap.c	Mon Mar 19 13:54:15 2012	(r233184)
+++ head/sys/amd64/amd64/pmap.c	Mon Mar 19 15:50:14 2012	(r233185)
@@ -2942,8 +2942,7 @@ pmap_protect(pmap_t pmap, vm_offset_t sv
 	pdp_entry_t *pdpe;
 	pd_entry_t ptpaddr, *pde;
 	pt_entry_t *pte;
-	int anychanged;
-	boolean_t pv_lists_locked;
+	boolean_t anychanged, pv_lists_locked;
 
 	if ((prot & VM_PROT_READ) == VM_PROT_NONE) {
 		pmap_remove(pmap, sva, eva);
@@ -2956,7 +2955,7 @@ pmap_protect(pmap_t pmap, vm_offset_t sv
 
 	pv_lists_locked = FALSE;
 resume:
-	anychanged = 0;
+	anychanged = FALSE;
 
 	PMAP_LOCK(pmap);
 	for (; sva < eva; sva = va_next) {
@@ -3004,7 +3003,7 @@ resume:
 				 * invalidated by pmap_protect_pde().
 				 */
 				if (pmap_protect_pde(pmap, pde, sva, prot))
-					anychanged = 1;
+					anychanged = TRUE;
 				continue;
 			} else {
 				if (!pv_lists_locked) {
@@ -3058,7 +3057,7 @@ retry:
 				if (obits & PG_G)
 					pmap_invalidate_page(pmap, sva);
 				else
-					anychanged = 1;
+					anychanged = TRUE;
 			}
 		}
 	}



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