Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 May 2009 18:33:23 +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: r192658 - head/sys/mips/mips
Message-ID:  <200905231833.n4NIXN3x063530@svn.freebsd.org>

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



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