summaryrefslogtreecommitdiffstats
path: root/meta/packages/qemu/qemu-git/qemu-amd64-32b-mapping-0.9.0.patch
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-05-23 23:25:07 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-05-23 23:25:07 +0100
commit4e3afe59683350983aa7ffece47e75c828f181d2 (patch)
tree36e2fb8bb7642821a62b801eaaefa46ef6b411c5 /meta/packages/qemu/qemu-git/qemu-amd64-32b-mapping-0.9.0.patch
parent79b7a566a29386b6075834a46c9c926d503581d9 (diff)
downloadpoky-4e3afe59683350983aa7ffece47e75c828f181d2.tar.gz
qemu: Switch to git and version 0.10.5
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/qemu/qemu-git/qemu-amd64-32b-mapping-0.9.0.patch')
-rw-r--r--meta/packages/qemu/qemu-git/qemu-amd64-32b-mapping-0.9.0.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/packages/qemu/qemu-git/qemu-amd64-32b-mapping-0.9.0.patch b/meta/packages/qemu/qemu-git/qemu-amd64-32b-mapping-0.9.0.patch
new file mode 100644
index 0000000000..40ab59c762
--- /dev/null
+++ b/meta/packages/qemu/qemu-git/qemu-amd64-32b-mapping-0.9.0.patch
@@ -0,0 +1,37 @@
1---
2 linux-user/mmap.c | 8 ++++++--
3 1 file changed, 6 insertions(+), 2 deletions(-)
4
5Index: trunk/linux-user/mmap.c
6===================================================================
7--- trunk.orig/linux-user/mmap.c 2009-01-05 11:09:58.000000000 +0000
8+++ trunk/linux-user/mmap.c 2009-01-05 12:46:33.000000000 +0000
9@@ -122,6 +122,10 @@
10 munmap(p, *p);
11 }
12
13+#ifndef MAP_32BIT
14+#define MAP_32BIT 0
15+#endif
16+
17 /* NOTE: all the constants are the HOST ones, but addresses are target. */
18 int target_mprotect(abi_ulong start, abi_ulong len, int prot)
19 {
20@@ -365,7 +369,7 @@
21 especially important if qemu_host_page_size >
22 qemu_real_host_page_size */
23 p = mmap(g2h(mmap_start),
24- host_len, prot, flags | MAP_FIXED, fd, host_offset);
25+ host_len, prot, flags | MAP_FIXED | MAP_32BIT, fd, host_offset);
26 if (p == MAP_FAILED)
27 goto fail;
28 /* update start so that it points to the file position at 'offset' */
29@@ -567,7 +571,7 @@
30 flags | MREMAP_FIXED,
31 g2h(mmap_start));
32 } else {
33- host_addr = mremap(g2h(old_addr), old_size, new_size, flags);
34+ host_addr = mremap(g2h(old_addr), old_size, new_size, flags | MAP_32BIT);
35 /* Check if address fits target address space */
36 if ((unsigned long)host_addr + new_size > (abi_ulong)-1) {
37 /* Revert mremap() changes */