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)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to