From 48f321f98ee6f46c0a214557f18ef06fa37f4d49 Mon Sep 17 00:00:00 2001 From: neel Date: Wed, 10 Apr 2013 18:59:20 +0000 Subject: 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(+) (limited to 'usr.sbin/bhyve') diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c index 5794b39..3218ca4 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) -- cgit v1.1