From 63db5ba435b2c499d195ab1ffa7a137c23eeebc3 Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Tue, 5 Jul 2011 18:46:19 +0000 Subject: [PATCH] In pmap_remove_all() assert that the page is neither fictitious nor unmanaged as also done on other architectures. Reviewed by: alc --- sys/sparc64/sparc64/pmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c index 26c95cf17e4..9ac32570022 100644 --- a/sys/sparc64/sparc64/pmap.c +++ b/sys/sparc64/sparc64/pmap.c @@ -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);