25 lines
706 B
Diff
25 lines
706 B
Diff
Index: qemu/linux-user/mmap.c
|
|
================================================================================
|
|
--- qemu-0.10.1/linux-user/mmap.c
|
|
+++ qemu-0.10.1/linux-user/mmap.c
|
|
@@ -33,6 +33,10 @@
|
|
#include "qemu.h"
|
|
#include "qemu-common.h"
|
|
|
|
+#if !defined(MAP_32BIT)
|
|
+#define MAP_32BIT 0
|
|
+#endif
|
|
+
|
|
//#define DEBUG_MMAP
|
|
|
|
#if defined(USE_NPTL)
|
|
@@ -232,7 +236,7 @@
|
|
if (prot1 == 0) {
|
|
/* no page was there, so we allocate one */
|
|
void *p = mmap(host_start, qemu_host_page_size, prot,
|
|
- flags | MAP_ANONYMOUS, -1, 0);
|
|
+ flags | MAP_ANONYMOUS | MAP_32BIT, -1, 0);
|
|
if (p == MAP_FAILED)
|
|
return -1;
|
|
prot1 = prot;
|