Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2008 06:31:31 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 132371 for review
Message-ID:  <200801030631.m036VVb4015686@repoman.freebsd.org>

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

Change 132371 by imp@imp_paco-paco on 2008/01/03 06:30:49

	Restore diagnostics, but fix comment name.

Affected files ...

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

Differences ...

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

@@ -1437,6 +1437,14 @@
 	register pv_entry_t pv;
 	register pt_entry_t *pte, tpte;
 
+#if defined(PMAP_DEBUG)
+	/*
+	 * XXX This makes pmap_remove_all() illegal for non-managed pages!
+	 */
+	if (m->flags & PG_FICTITIOUS) {
+		panic("pmap_page_protect: 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)



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