Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2009 06:24:51 +0000 (UTC)
From:      Rafal Jaworowski <raj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192795 - head/sys/powerpc/booke
Message-ID:  <200905260624.n4Q6OpSb048764@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: raj
Date: Tue May 26 06:24:50 2009
New Revision: 192795
URL: http://svn.freebsd.org/changeset/base/192795

Log:
  Set PG_WRITEABLE in Book-E pmap_enter[_locked] if it creates a mapping that
  permits write access. This is similar to r192671.
  
  Pointed out and reviewed by:	alc

Modified:
  head/sys/powerpc/booke/pmap.c

Modified: head/sys/powerpc/booke/pmap.c
==============================================================================
--- head/sys/powerpc/booke/pmap.c	Tue May 26 06:20:50 2009	(r192794)
+++ head/sys/powerpc/booke/pmap.c	Tue May 26 06:24:50 2009	(r192795)
@@ -1574,6 +1574,8 @@ mmu_booke_enter_locked(mmu_t mmu, pmap_t
 			flags |= PTE_SW;
 			if (!su)
 				flags |= PTE_UW;
+
+			vm_page_flag_set(m, PG_WRITEABLE);
 		} else {
 			/* Handle modified pages, sense modify status. */
 
@@ -1638,6 +1640,8 @@ mmu_booke_enter_locked(mmu_t mmu, pmap_t
 			flags |= PTE_SW;
 			if (!su)
 				flags |= PTE_UW;
+
+			vm_page_flag_set(m, PG_WRITEABLE);
 		}
 
 		if (prot & VM_PROT_EXECUTE) {



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