Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2011 02:11:26 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r224049 - head/sys/arm/arm
Message-ID:  <201107150211.p6F2BQt4055623@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Fri Jul 15 02:11:26 2011
New Revision: 224049
URL: http://svn.freebsd.org/changeset/base/224049

Log:
  In pmap_protect(), don't call vm_page_dirty() if the page is unmanaged.

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

Modified: head/sys/arm/arm/pmap.c
==============================================================================
--- head/sys/arm/arm/pmap.c	Fri Jul 15 01:59:08 2011	(r224048)
+++ head/sys/arm/arm/pmap.c	Fri Jul 15 02:11:26 2011	(r224049)
@@ -3242,9 +3242,12 @@ pmap_protect(pmap_t pm, vm_offset_t sva,
 				PTE_SYNC(ptep);
 
 				if (pg != NULL) {
-					f = pmap_modify_pv(pg, pm, sva,
-					    PVF_WRITE, 0);
-					vm_page_dirty(pg);
+					if (!(pg->flags & PG_UNMANAGED)) {
+						f = pmap_modify_pv(pg, pm, sva,
+						    PVF_WRITE, 0);
+						vm_page_dirty(pg);
+					} else
+						f = 0;
 				} else
 					f = PVF_REF | PVF_EXEC;
 



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