From c8a706fe6242a553960ccc3071a4e75ceba6f3d2 Mon Sep 17 00:00:00 2001 From: pbrook Date: Mon, 2 Jun 2008 16:16:42 +0000 Subject: Multithreaded locking for mmap(). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4654 c046a42c-6fe2-441c-8c8c-71466251a162 --- linux-user/qemu.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux-user/qemu.h') diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 093b8ff8a3..7a38bfe074 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -233,6 +233,8 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, abi_ulong new_addr); int target_msync(abi_ulong start, abi_ulong len, int flags); extern unsigned long last_brk; +void mmap_lock(void); +void mmap_unlock(void); /* user access */ @@ -423,4 +425,8 @@ static inline void *lock_user_string(abi_ulong guest_addr) #define unlock_user_struct(host_ptr, guest_addr, copy) \ unlock_user(host_ptr, guest_addr, (copy) ? sizeof(*host_ptr) : 0) +#if defined(USE_NPTL) +#include +#endif + #endif /* QEMU_H */ -- cgit v1.2.3