[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/7] linux-user: initialize mmap_mutex properly
From: |
Nathan Froyd |
Subject: |
[Qemu-devel] [PATCH 1/7] linux-user: initialize mmap_mutex properly |
Date: |
Thu, 4 Jun 2009 11:51:56 -0700 |
We initialize mmap_mutex in any child threads/processes, but we need to
correctly statically initialize it for the original process.
Signed-off-by: Nathan Froyd <address@hidden>
---
linux-user/mmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux-user/mmap.c b/linux-user/mmap.c
index 6f300a0..a21b558 100644
--- a/linux-user/mmap.c
+++ b/linux-user/mmap.c
@@ -36,7 +36,7 @@
//#define DEBUG_MMAP
#if defined(USE_NPTL)
-pthread_mutex_t mmap_mutex;
+pthread_mutex_t mmap_mutex = PTHREAD_MUTEX_INITIALIZER;
static int __thread mmap_lock_count;
void mmap_lock(void)
--
1.6.3.2
- [Qemu-devel] [PATCH 0/7] target-ppc/linux-user: NPTL support, Nathan Froyd, 2009/06/04
- [Qemu-devel] [PATCH 7/7] enable NPTL for ppc-linux-user targets in configure, Nathan Froyd, 2009/06/04
- [Qemu-devel] [PATCH 2/7] target-ppc: fix cpu_clone_regs, Nathan Froyd, 2009/06/04
- [Qemu-devel] [PATCH 1/7] linux-user: initialize mmap_mutex properly,
Nathan Froyd <=
- [Qemu-devel] [PATCH 5/7] target-ppc: add exceptions for conditional stores, Nathan Froyd, 2009/06/04
- [Qemu-devel] [PATCH 3/7] target-ppc: add cpu_set_tls, Nathan Froyd, 2009/06/04
- [Qemu-devel] [PATCH 6/7] linux-user: handle POWERPC_EXCP_STCX, Nathan Froyd, 2009/06/04
- [Qemu-devel] [PATCH 4/7] target-ppc: retain l{w,d}arx loaded value, Nathan Froyd, 2009/06/04
- Re: [Qemu-devel] [PATCH 0/7] target-ppc/linux-user: NPTL support, malc, 2009/06/05
- Re: [Qemu-devel] [PATCH 0/7] target-ppc/linux-user: NPTL support, Miklos Vajna, 2009/06/09