2007-07-10 18:55:54 +02:00
|
|
|
Index: qemu/linux-user/mmap.c
|
2007-11-13 21:32:02 +01:00
|
|
|
================================================================================
|
2009-04-01 18:57:34 +02:00
|
|
|
--- qemu-0.10.1/linux-user/mmap.c
|
|
|
|
+++ qemu-0.10.1/linux-user/mmap.c
|
|
|
|
@@ -33,6 +33,10 @@
|
2007-06-20 19:21:29 +02:00
|
|
|
#include "qemu.h"
|
2009-04-01 18:57:34 +02:00
|
|
|
#include "qemu-common.h"
|
2007-06-20 19:21:29 +02:00
|
|
|
|
|
|
|
+#if !defined(MAP_32BIT)
|
|
|
|
+#define MAP_32BIT 0
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
//#define DEBUG_MMAP
|
|
|
|
|
2008-07-25 04:42:31 +02:00
|
|
|
#if defined(USE_NPTL)
|
2009-04-01 18:57:34 +02:00
|
|
|
@@ -232,7 +236,7 @@
|
2007-06-20 19:21:29 +02:00
|
|
|
if (prot1 == 0) {
|
|
|
|
/* no page was there, so we allocate one */
|
2007-11-13 21:32:02 +01:00
|
|
|
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;
|
2007-06-20 19:21:29 +02:00
|
|
|
prot1 = prot;
|