svn commit: r249343 - head/usr.sbin/bhyve

Neel Natu neel at FreeBSD.org
Wed Apr 10 18:59:21 UTC 2013


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)


More information about the svn-src-head mailing list