Date: Thu, 3 Jan 2008 06:30:30 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 132370 for review Message-ID: <200801030630.m036UUEY015206@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132370 Change 132370 by imp@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801030630.m036UUEY015206>