diff options
author | Richard Purdie <richard@openedhand.com> | 2007-12-04 13:58:45 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-12-04 13:58:45 +0000 |
commit | d0b4968cd24a0152e88396d40310cdbae9555a1f (patch) | |
tree | 0ec4da2bbbbfcc7300780589135c01a3430ff774 /meta/packages/qemu/qemu-0.9.0+cvs20070613/qemu-amd64-32b-mapping-0.9.0.patch | |
parent | 1fbde4b0c426c59695eb19e3785718dddf62632c (diff) | |
download | openembedded-core-d0b4968cd24a0152e88396d40310cdbae9555a1f.tar.gz openembedded-core-d0b4968cd24a0152e88396d40310cdbae9555a1f.tar.bz2 openembedded-core-d0b4968cd24a0152e88396d40310cdbae9555a1f.tar.xz openembedded-core-d0b4968cd24a0152e88396d40310cdbae9555a1f.zip |
qemu: Make 20071121 the default version and cleanup various file locations and recipes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3305 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/qemu/qemu-0.9.0+cvs20070613/qemu-amd64-32b-mapping-0.9.0.patch')
-rw-r--r-- | meta/packages/qemu/qemu-0.9.0+cvs20070613/qemu-amd64-32b-mapping-0.9.0.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/packages/qemu/qemu-0.9.0+cvs20070613/qemu-amd64-32b-mapping-0.9.0.patch b/meta/packages/qemu/qemu-0.9.0+cvs20070613/qemu-amd64-32b-mapping-0.9.0.patch new file mode 100644 index 000000000..d9303e346 --- /dev/null +++ b/meta/packages/qemu/qemu-0.9.0+cvs20070613/qemu-amd64-32b-mapping-0.9.0.patch @@ -0,0 +1,31 @@ +--- qemu.orig/linux-user/mmap.c ++++ qemu/linux-user/mmap.c +@@ -29,6 +29,10 @@ + + //#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_len = len + offset - host_offset; + host_start = (long)mmap(real_start ? g2h(real_start) : NULL, +- host_len, prot, flags, fd, host_offset); ++ host_len, prot, (flags | MAP_32BIT), fd, host_offset); + if (host_start == -1) + return host_start; + /* update start so that it points to the file position at 'offset' */ +@@ -388,7 +392,7 @@ + int prot; + + /* XXX: use 5 args syscall */ +- new_addr = (long)mremap(g2h(old_addr), old_size, new_size, flags); ++ new_addr = (long)mremap(g2h(old_addr), old_size, new_size, (flags | MAP_32BIT)); + if (new_addr == -1) + return new_addr; + new_addr = h2g(new_addr); |