svn commit: r192671 - head/sys/mips/mips

Alan Cox alc at FreeBSD.org
Sat May 23 22:05:15 UTC 2009


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;
 }


More information about the svn-src-all mailing list