Date: Sat, 5 Jun 2010 06:56:06 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r208810 - head/sys/powerpc/aim Message-ID: <201006050656.o556u6Sh043689@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: alc Date: Sat Jun 5 06:56:06 2010 New Revision: 208810 URL: http://svn.freebsd.org/changeset/base/208810 Log: Don't set PG_WRITEABLE in pmap_enter() unless the page is managed. Modified: head/sys/powerpc/aim/mmu_oea.c head/sys/powerpc/aim/mmu_oea64.c Modified: head/sys/powerpc/aim/mmu_oea.c ============================================================================== --- head/sys/powerpc/aim/mmu_oea.c Sat Jun 5 00:56:15 2010 (r208809) +++ head/sys/powerpc/aim/mmu_oea.c Sat Jun 5 06:56:06 2010 (r208810) @@ -1140,7 +1140,8 @@ moea_enter_locked(pmap_t pmap, vm_offset if (prot & VM_PROT_WRITE) { pte_lo |= PTE_BW; - if (pmap_bootstrapped) + if (pmap_bootstrapped && + (m->flags & (PG_FICTITIOUS | PG_UNMANAGED)) == 0) vm_page_flag_set(m, PG_WRITEABLE); } else pte_lo |= PTE_BR; Modified: head/sys/powerpc/aim/mmu_oea64.c ============================================================================== --- head/sys/powerpc/aim/mmu_oea64.c Sat Jun 5 00:56:15 2010 (r208809) +++ head/sys/powerpc/aim/mmu_oea64.c Sat Jun 5 06:56:06 2010 (r208810) @@ -1249,7 +1249,8 @@ moea64_enter_locked(pmap_t pmap, vm_offs if (prot & VM_PROT_WRITE) { pte_lo |= LPTE_BW; - if (pmap_bootstrapped) + if (pmap_bootstrapped && + (m->flags & (PG_FICTITIOUS | PG_UNMANAGED)) == 0) vm_page_flag_set(m, PG_WRITEABLE); } else pte_lo |= LPTE_BR;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006050656.o556u6Sh043689>