ia64/xen-unstable

changeset 13027:7fdf6e0f12db

Fix deadlock when accessing IO memory.

Signed-off-by: Steven Hand <steven@xensource.com>
author Steven Hand <steven@xensource.com>
date Thu Dec 14 12:35:23 2006 +0000 (2006-12-14)
parents 79315be2c9b9
children 70155087efe8
files tools/ioemu/target-i386-dm/exec-dm.c
line diff
     1.1 --- a/tools/ioemu/target-i386-dm/exec-dm.c	Thu Dec 14 12:21:28 2006 +0000
     1.2 +++ b/tools/ioemu/target-i386-dm/exec-dm.c	Thu Dec 14 12:35:23 2006 +0000
     1.3 @@ -441,7 +441,7 @@ void cpu_physical_memory_rw(target_phys_
     1.4      uint32_t val;
     1.5  
     1.6  #if defined(__i386__) || defined(__x86_64__)
     1.7 -    static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
     1.8 +    static pthread_mutex_t mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
     1.9      pthread_mutex_lock(&mutex);
    1.10  #endif
    1.11