mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
qemu: fix lack of MAP_32BIT on 32bit machines
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2475 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -1,7 +1,17 @@
|
|||||||
diff -Naru qemu-snapshot-2007-07-01_05.orig/linux-user/mmap.c qemu-snapshot-2007-07-01_05/linux-user/mmap.c
|
--- qemu.orig/linux-user/mmap.c
|
||||||
--- qemu-snapshot-2007-07-01_05.orig/linux-user/mmap.c 2007-06-03 17:31:32.000000000 +0200
|
+++ qemu/linux-user/mmap.c
|
||||||
+++ qemu-snapshot-2007-07-01_05/linux-user/mmap.c 2007-07-02 14:00:30.000000000 +0200
|
@@ -29,6 +29,10 @@
|
||||||
@@ -234,7 +234,7 @@
|
|
||||||
|
//#define DEBUG_MMAP
|
||||||
|
|
||||||
|
+#ifndef MAP_32BIT
|
||||||
|
+#define MAP_32BIT 0
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
/* NOTE: all the constants are the HOST ones, but addresses are target. */
|
||||||
|
int target_mprotect(target_ulong start, target_ulong len, int prot)
|
||||||
|
{
|
||||||
|
@@ -234,7 +238,7 @@
|
||||||
host_offset = offset & qemu_host_page_mask;
|
host_offset = offset & qemu_host_page_mask;
|
||||||
host_len = len + offset - host_offset;
|
host_len = len + offset - host_offset;
|
||||||
host_start = (long)mmap(real_start ? g2h(real_start) : NULL,
|
host_start = (long)mmap(real_start ? g2h(real_start) : NULL,
|
||||||
@@ -10,7 +20,7 @@ diff -Naru qemu-snapshot-2007-07-01_05.orig/linux-user/mmap.c qemu-snapshot-2007
|
|||||||
if (host_start == -1)
|
if (host_start == -1)
|
||||||
return host_start;
|
return host_start;
|
||||||
/* update start so that it points to the file position at 'offset' */
|
/* update start so that it points to the file position at 'offset' */
|
||||||
@@ -388,7 +388,7 @@
|
@@ -388,7 +392,7 @@
|
||||||
int prot;
|
int prot;
|
||||||
|
|
||||||
/* XXX: use 5 args syscall */
|
/* XXX: use 5 args syscall */
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
LICENSE = "GPL"
|
LICENSE = "GPL"
|
||||||
DEPENDS = "zlib"
|
DEPENDS = "zlib"
|
||||||
PV = "0.9.0+cvs${SRCDATE}"
|
PV = "0.9.0+cvs${SRCDATE}"
|
||||||
PR = "r2"
|
PR = "r3"
|
||||||
|
|
||||||
FILESDIR = "${WORKDIR}"
|
FILESDIR = "${WORKDIR}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user