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

Alan Cox alc at FreeBSD.org
Sat May 23 18:33:23 UTC 2009


Author: alc
Date: Sat May 23 18:33:22 2009
New Revision: 192658
URL: http://svn.freebsd.org/changeset/base/192658

Log:
  When a page is mapped for write access on a read fault, the PTE should be
  configured to trap on a write access unless *all* of the page's dirty bits
  are set.

Modified:
  head/sys/mips/mips/pmap.c

Modified: head/sys/mips/mips/pmap.c
==============================================================================
--- head/sys/mips/mips/pmap.c	Sat May 23 18:25:11 2009	(r192657)
+++ head/sys/mips/mips/pmap.c	Sat May 23 18:33:22 2009	(r192658)
@@ -3116,7 +3116,8 @@ init_pte_prot(vm_offset_t va, vm_page_t 
 			 */
 			rw = PTE_RWPAGE;
 			vm_page_dirty(m);
-		} else if ((m->md.pv_flags & PV_TABLE_MOD) || m->dirty)
+		} else if ((m->md.pv_flags & PV_TABLE_MOD) ||
+		    m->dirty == VM_PAGE_BITS_ALL)
 			rw = PTE_RWPAGE;
 		else
 			rw = PTE_CWPAGE;


More information about the svn-src-all mailing list