From 0e2ca4e625e75f7b21830be6cf49f6de5d0db451 Mon Sep 17 00:00:00 2001 From: Neel Natu Date: Wed, 10 Apr 2013 18:59:20 +0000 Subject: [PATCH] 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 --- usr.sbin/bhyve/bhyverun.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c index 5794b39ab44..3218ca413ca 100644 --- a/usr.sbin/bhyve/bhyverun.c +++ b/usr.sbin/bhyve/bhyverun.c @@ -728,6 +728,7 @@ main(int argc, char *argv[]) exit(1); } + init_mem(); init_inout(); init_pci(ctx); if (ioapic)