PERFORCE change 132370 for review

Warner Losh imp at FreeBSD.org
Wed Jan 2 22:30:31 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=132370

Change 132370 by imp at imp_paco-paco on 2008/01/03 06:29:30

	
	remove references to pmap_page_protect.  It appears to have
	been relegated to the scrap heap of history.

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/mips/pmap.c#8 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/mips/pmap.c#8 (text+ko) ====

@@ -1437,16 +1437,6 @@
 	register pv_entry_t pv;
 	register pt_entry_t *pte, tpte;
 
-#if defined(PMAP_DIAGNOSTIC)
-	/*
-	 * XXX this makes pmap_page_protect(NONE) illegal for non-managed
-	 * pages!
-	 */
-	if (m->flags & PG_FICTITIOUS) {
-		panic("pmap_remove_all: illegal for unmanaged page, va: 0x%x", VM_PAGE_TO_PHYS(m));
-	}
-#endif
-
 	mtx_assert(&vm_page_queue_mtx, MA_OWNED);
 
 	if (m->md.pv_flags & PV_TABLE_REF)
@@ -2333,23 +2323,6 @@
 }
 
 /*
- *	pmap_page_protect:
- *
- *	Lower the permission for all mappings to a given page.
- */
-void
-pmap_page_protect(vm_page_t m, vm_prot_t prot)
-{
-	if ((prot & VM_PROT_WRITE) == 0) {
-		if (prot & (VM_PROT_READ | VM_PROT_EXECUTE)) {
-			pmap_changebit(m, PG_RW, FALSE);
-		} else {
-			pmap_remove_all(m);
-		}
-	}
-}
-
-/*
  *	pmap_ts_referenced:
  *
  *	Return the count of reference bits for a page, clearing all of them.


More information about the p4-projects mailing list