qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 01/10] export mmap_find_vma for shmat


From: riku . voipio
Subject: [Qemu-devel] [PATCH 01/10] export mmap_find_vma for shmat
Date: Wed, 29 Apr 2009 21:03:14 +0300

From: Riku Voipio <address@hidden>

since mmap_find_vma rewrite is being passively refused, drop it
for now, and just export the existing function.

Signed-off-by: Riku Voipio <address@hidden>
---
 linux-user/mmap.c |    2 +-
 linux-user/qemu.h |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/linux-user/mmap.c b/linux-user/mmap.c
index 6f300a0..aa5813f 100644
--- a/linux-user/mmap.c
+++ b/linux-user/mmap.c
@@ -281,7 +281,7 @@ unsigned long last_brk;
 */
 /* page_init() marks pages used by the host as reserved to be sure not
    to use them. */
-static abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size)
+abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size)
 {
     abi_ulong addr, addr1, addr_start;
     int prot;
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index 447caf9..15db106 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -229,6 +229,7 @@ int target_msync(abi_ulong start, abi_ulong len, int flags);
 extern unsigned long last_brk;
 void mmap_lock(void);
 void mmap_unlock(void);
+abi_ulong mmap_find_vma(abi_ulong, abi_ulong);
 void cpu_list_lock(void);
 void cpu_list_unlock(void);
 #if defined(USE_NPTL)
-- 
1.6.2.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]