Date: Fri, 29 Nov 2013 15:06:11 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258742 - head/sys/arm/arm Message-ID: <201311291506.rATF6Bbw084043@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311291506.rATF6Bbw084043>