Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2006 20:40:14 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 103134 for review
Message-ID:  <200608032040.k73KeEVW068695@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103134

Change 103134 by jb@jb_freebsd2 on 2006/08/03 20:39:43

	Catch up with the VM changes in -current.
	
	We probably should merge sun4v into current so that we don't have
	to chase things like this.

Affected files ...

.. //depot/projects/dtrace/src/sys/sun4v/sun4v/pmap.c#11 edit

Differences ...

==== //depot/projects/dtrace/src/sys/sun4v/sun4v/pmap.c#11 (text+ko) ====

@@ -1528,22 +1528,12 @@
 	m->md.pv_list_count = 0;
 }
 
-/*
- * Lower the permission for all mappings to a given page.
- */
 void
-pmap_page_protect(vm_page_t m, vm_prot_t prot)
+pmap_remove_write(vm_page_t m)
 {
-	
-	DPRINTF("pmap_page_protect(0x%lx, %d)\n", VM_PAGE_TO_PHYS(m), prot);
+	DPRINTF("pmap_remove_write(0x%lx)\n", VM_PAGE_TO_PHYS(m));
 
-	if ((prot & VM_PROT_WRITE) == 0) {
-		if (prot & (VM_PROT_READ | VM_PROT_EXECUTE)) {
-			tte_clear_phys_bit(m, VTD_SW_W);
-		} else {
-			pmap_remove_all(m);
-		}
-	}
+	tte_clear_phys_bit(m, VTD_SW_W);
 }
 
 /*



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