summaryrefslogtreecommitdiffstats
path: root/meta/packages/qemu/files/qemu-amd64-32b-mapping-0.9.0.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/qemu/files/qemu-amd64-32b-mapping-0.9.0.patch')
-rw-r--r--meta/packages/qemu/files/qemu-amd64-32b-mapping-0.9.0.patch20
1 files changed, 15 insertions, 5 deletions
diff --git a/meta/packages/qemu/files/qemu-amd64-32b-mapping-0.9.0.patch b/meta/packages/qemu/files/qemu-amd64-32b-mapping-0.9.0.patch
index 8f5e9d8b4b..d9303e3464 100644
--- a/meta/packages/qemu/files/qemu-amd64-32b-mapping-0.9.0.patch
+++ b/meta/packages/qemu/files/qemu-amd64-32b-mapping-0.9.0.patch
@@ -1,7 +1,17 @@
1diff -Naru qemu-snapshot-2007-07-01_05.orig/linux-user/mmap.c qemu-snapshot-2007-07-01_05/linux-user/mmap.c 1--- qemu.orig/linux-user/mmap.c
2--- qemu-snapshot-2007-07-01_05.orig/linux-user/mmap.c 2007-06-03 17:31:32.000000000 +0200 2+++ qemu/linux-user/mmap.c
3+++ qemu-snapshot-2007-07-01_05/linux-user/mmap.c 2007-07-02 14:00:30.000000000 +0200 3@@ -29,6 +29,10 @@
4@@ -234,7 +234,7 @@ 4
5 //#define DEBUG_MMAP
6
7+#ifndef MAP_32BIT
8+#define MAP_32BIT 0
9+#endif
10+
11 /* NOTE: all the constants are the HOST ones, but addresses are target. */
12 int target_mprotect(target_ulong start, target_ulong len, int prot)
13 {
14@@ -234,7 +238,7 @@
5 host_offset = offset & qemu_host_page_mask; 15 host_offset = offset & qemu_host_page_mask;
6 host_len = len + offset - host_offset; 16 host_len = len + offset - host_offset;
7 host_start = (long)mmap(real_start ? g2h(real_start) : NULL, 17 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
10 if (host_start == -1) 20 if (host_start == -1)
11 return host_start; 21 return host_start;
12 /* update start so that it points to the file position at 'offset' */ 22 /* update start so that it points to the file position at 'offset' */
13@@ -388,7 +388,7 @@ 23@@ -388,7 +392,7 @@
14 int prot; 24 int prot;
15 25
16 /* XXX: use 5 args syscall */ 26 /* XXX: use 5 args syscall */