summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2013-04-10 18:59:20 +0000
committerneel <neel@FreeBSD.org>2013-04-10 18:59:20 +0000
commit48f321f98ee6f46c0a214557f18ef06fa37f4d49 (patch)
tree0bd39aaaf2b57b086b947aa549822c8cbfcd2b18 /usr.sbin/bhyve
parent6ca7b417ee49832652eca77c91604b20da8e93be (diff)
downloadFreeBSD-src-48f321f98ee6f46c0a214557f18ef06fa37f4d49.zip
FreeBSD-src-48f321f98ee6f46c0a214557f18ef06fa37f4d49.tar.gz
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
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r--usr.sbin/bhyve/bhyverun.c1
1 files changed, 1 insertions, 0 deletions
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)
OpenPOWER on IntegriCloud