svn commit: r258742 - head/sys/arm/arm
Ian Lepore
ian at FreeBSD.org
Fri Nov 29 15:06:12 UTC 2013
Author: ian
Date: Fri Nov 29 15:06:11 2013
New Revision: 258742
URL: http://svnweb.freebsd.org/changeset/base/258742
Log:
Set the PGA_WRITEABLE flag when the protections indicate write access, not
just when the current access is a write.
Reviewed by: zbb@
Modified:
head/sys/arm/arm/pmap-v6.c
Modified: head/sys/arm/arm/pmap-v6.c
==============================================================================
--- head/sys/arm/arm/pmap-v6.c Fri Nov 29 15:05:49 2013 (r258741)
+++ head/sys/arm/arm/pmap-v6.c Fri Nov 29 15:06:11 2013 (r258742)
@@ -3092,6 +3092,7 @@ validate:
if (prot & VM_PROT_WRITE) {
if ((m->oflags & VPO_UNMANAGED) == 0) {
+ vm_page_aflag_set(m, PGA_WRITEABLE);
/*
* Enable write permission if the access type
* indicates write intention. Emulate modified
@@ -3099,7 +3100,6 @@ validate:
*/
if ((access & VM_PROT_WRITE) != 0) {
npte &= ~(L2_APX);
- vm_page_aflag_set(m, PGA_WRITEABLE);
/*
* The access type and permissions
* indicate that the page will be
More information about the svn-src-all
mailing list