From 899f5ffc89dcfeb346fc2400fe3ecdc07c1fddd7 Mon Sep 17 00:00:00 2001 From: adrian Date: Fri, 27 Dec 2013 22:05:51 +0000 Subject: [PATCH] Revert r252694 from stable/10 to fix instabilities seen with jemalloc + dhclient/sshd. This is a direct commit to stable/10 as the VM code has changed since the stable/10 branch. PR: kern/185046 --- sys/arm/arm/pmap-v6.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sys/arm/arm/pmap-v6.c b/sys/arm/arm/pmap-v6.c index 017aefd529bd..1805cc45b5ea 100644 --- a/sys/arm/arm/pmap-v6.c +++ b/sys/arm/arm/pmap-v6.c @@ -3087,13 +3087,8 @@ pmap_enter_locked(pmap_t pmap, vm_offset_t va, vm_prot_t access, vm_page_t m, } if (prot & VM_PROT_WRITE) { - /* - * Enable write permission if the access type - * indicates write intention. Emulate modified - * bit otherwise. - */ - if ((access & VM_PROT_WRITE) != 0) - npte &= ~(L2_APX); + /* Write enable */ + npte &= ~(L2_APX); if ((m->oflags & VPO_UNMANAGED) == 0) { vm_page_aflag_set(m, PGA_WRITEABLE);