From b9f6788a74b5e9a08c72daffe492c9e696130410 Mon Sep 17 00:00:00 2001 From: neel Date: Wed, 14 Apr 2010 01:57:53 +0000 Subject: [PATCH] Destroy the pmap 'pm_mutex' in pmap_release() otherwise we will panic subsequently in pmap_pinit() with the following signature: panic: lock "pmap" 0xc7878bc8 already initialized This bug was uncovered by the changes made to vm_map.c in r206140. --- sys/mips/mips/pmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c index 73f57e4fbee6..d5765ea9b0e8 100644 --- a/sys/mips/mips/pmap.c +++ b/sys/mips/mips/pmap.c @@ -1263,6 +1263,7 @@ pmap_release(pmap_t pmap) ptdpg->wire_count--; atomic_subtract_int(&cnt.v_wire_count, 1); vm_page_free_zero(ptdpg); + PMAP_LOCK_DESTROY(pmap); } /*