Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2010 01:57:54 +0000 (UTC)
From:      Neel Natu <neel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r206584 - head/sys/mips/mips
Message-ID:  <201004140157.o3E1vsLt030213@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: neel
Date: Wed Apr 14 01:57:53 2010
New Revision: 206584
URL: http://svn.freebsd.org/changeset/base/206584

Log:
  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.

Modified:
  head/sys/mips/mips/pmap.c

Modified: head/sys/mips/mips/pmap.c
==============================================================================
--- head/sys/mips/mips/pmap.c	Wed Apr 14 01:43:25 2010	(r206583)
+++ head/sys/mips/mips/pmap.c	Wed Apr 14 01:57:53 2010	(r206584)
@@ -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);
 }
 
 /*



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