svn commit: r223798 - head/sys/sparc64/sparc64
Marius Strobl
marius at FreeBSD.org
Tue Jul 5 18:46:19 UTC 2011
Author: marius
Date: Tue Jul 5 18:46:19 2011
New Revision: 223798
URL: http://svn.freebsd.org/changeset/base/223798
Log:
In pmap_remove_all() assert that the page is neither fictitious nor
unmanaged as also done on other architectures.
Reviewed by: alc
Modified:
head/sys/sparc64/sparc64/pmap.c
Modified: head/sys/sparc64/sparc64/pmap.c
==============================================================================
--- head/sys/sparc64/sparc64/pmap.c Tue Jul 5 18:43:54 2011 (r223797)
+++ head/sys/sparc64/sparc64/pmap.c Tue Jul 5 18:46:19 2011 (r223798)
@@ -1387,6 +1387,8 @@ pmap_remove_all(vm_page_t m)
struct tte *tp;
vm_offset_t va;
+ KASSERT((m->flags & (PG_FICTITIOUS | PG_UNMANAGED)) == 0,
+ ("pmap_remove_all: page %p is not managed", m));
vm_page_lock_queues();
for (tp = TAILQ_FIRST(&m->md.tte_list); tp != NULL; tp = tpn) {
tpn = TAILQ_NEXT(tp, tte_link);
More information about the svn-src-all
mailing list