From owner-svn-src-head@FreeBSD.ORG Sat May 23 22:05:14 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71F87106566C; Sat, 23 May 2009 22:05:14 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 617018FC27; Sat, 23 May 2009 22:05:14 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4NM5EEt069233; Sat, 23 May 2009 22:05:14 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4NM5EKl069232; Sat, 23 May 2009 22:05:14 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <200905232205.n4NM5EKl069232@svn.freebsd.org> From: Alan Cox Date: Sat, 23 May 2009 22:05:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r192671 - head/sys/mips/mips X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2009 22:05:15 -0000 Author: alc Date: Sat May 23 22:05:14 2009 New Revision: 192671 URL: http://svn.freebsd.org/changeset/base/192671 Log: pmap_enter() *must* set PG_WRITEABLE on the given page if it creates a mapping that permits write access. Otherwise, pmap_remove_write() will not remove write access from any of the page's mappings. Modified: head/sys/mips/mips/pmap.c Modified: head/sys/mips/mips/pmap.c ============================================================================== --- head/sys/mips/mips/pmap.c Sat May 23 21:49:36 2009 (r192670) +++ head/sys/mips/mips/pmap.c Sat May 23 22:05:14 2009 (r192671) @@ -3121,6 +3121,7 @@ init_pte_prot(vm_offset_t va, vm_page_t rw = PTE_RWPAGE; else rw = PTE_CWPAGE; + vm_page_flag_set(m, PG_WRITEABLE); } return rw; }