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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"