summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2006-08-17 10:04:49 +0000
committernetchild <netchild@FreeBSD.org>2006-08-17 10:04:49 +0000
commit2e4762bd3ced75a6b2e537e46ebe6c4e51ce13a3 (patch)
tree93f1121a4ff3c473cb1f8d08106ef63ac443cf62
parentbe3d72f3831380ca74c38412b4a6d394afa08039 (diff)
downloadFreeBSD-src-2e4762bd3ced75a6b2e537e46ebe6c4e51ce13a3.zip
FreeBSD-src-2e4762bd3ced75a6b2e537e46ebe6c4e51ce13a3.tar.gz
Initialize the emul sx-lock.
Sponsored by: Google SoC 2006 Submitted by: rdivacky
-rw-r--r--sys/amd64/linux32/linux32_sysvec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c
index 0af0169..cbcf320 100644
--- a/sys/amd64/linux32/linux32_sysvec.c
+++ b/sys/amd64/linux32/linux32_sysvec.c
@@ -1079,6 +1079,7 @@ linux_elf_modevent(module_t mod, int type, void *data)
linux_ioctl_register_handler(*lihp);
SET_FOREACH(ldhp, linux_device_handler_set)
linux_device_register_handler(*ldhp);
+ sx_init(&emul_lock, "emuldata lock");
sx_init(&emul_shared_lock, "emuldata->shared lock");
LIST_INIT(&futex_list);
mtx_init(&futex_mtx, "futex protection lock", NULL, MTX_DEF);
OpenPOWER on IntegriCloud