Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 2013 18:59:20 +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: r249343 - head/usr.sbin/bhyve
Message-ID:  <201304101859.r3AIxK17036771@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: neel
Date: Wed Apr 10 18:59:20 2013
New Revision: 249343
URL: http://svnweb.freebsd.org/changeset/base/249343

Log:
  Need to call init_mem() to really initialize the MMIO range lookups.
  
  This was working by accident because:
  - the RB_HEADs were being initialized to zero as part of BSS
  - the pthread_rwlock functions were implicitly initializing the lock object
  
  Obtained from:	NetApp

Modified:
  head/usr.sbin/bhyve/bhyverun.c

Modified: head/usr.sbin/bhyve/bhyverun.c
==============================================================================
--- head/usr.sbin/bhyve/bhyverun.c	Wed Apr 10 18:53:14 2013	(r249342)
+++ head/usr.sbin/bhyve/bhyverun.c	Wed Apr 10 18:59:20 2013	(r249343)
@@ -728,6 +728,7 @@ main(int argc, char *argv[])
 		exit(1);
 	}
 
+	init_mem();
 	init_inout();
 	init_pci(ctx);
 	if (ioapic)



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