File qemu-cvs-mmap-amd64.patch of Package qemu (Revision 60d57c37d29c857c25b668faf204a1b1)
Currently displaying revision 60d57c37d29c857c25b668faf204a1b1, show latest
x
1
Index: qemu/linux-user/mmap.c
2
================================================================================
3
--- qemu-0.10.1/linux-user/mmap.c
4
+++ qemu-0.10.1/linux-user/mmap.c
5
6
#include "qemu.h"
7
#include "qemu-common.h"
8
9
+#if !defined(MAP_32BIT)
10
+#define MAP_32BIT 0
11
+#endif
12
+
13
//#define DEBUG_MMAP
14
15
#if defined(USE_NPTL)
16
17
if (prot1 == 0) {
18
/* no page was there, so we allocate one */
19
void *p = mmap(host_start, qemu_host_page_size, prot,
20
- flags | MAP_ANONYMOUS, -1, 0);
21
+ flags | MAP_ANONYMOUS | MAP_32BIT, -1, 0);
22
if (p == MAP_FAILED)
23
return -1;
24
prot1 = prot;
25