Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 May 2009 22:05:14 +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: r192671 - head/sys/mips/mips
Message-ID:  <200905232205.n4NM5EKl069232@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905232205.n4NM5EKl069232>