summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/x86/linux/linux.hh4
-rw-r--r--src/arch/x86/process.cc2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/arch/x86/linux/linux.hh b/src/arch/x86/linux/linux.hh
index d5bead8f3..a810d4a79 100644
--- a/src/arch/x86/linux/linux.hh
+++ b/src/arch/x86/linux/linux.hh
@@ -190,7 +190,9 @@ class X86Linux32 : public Linux
uint32_t totalhigh; /* Total high memory size */
uint32_t freehigh; /* Available high memory size */
uint32_t mem_unit; /* Memory unit size in bytes */
- } tgt_sysinfo;
+ } tgt_sysinfo;
+
+ static bool mmapGrowsDown() { return true; }
};
#endif
diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc
index 4082e568c..f7678443d 100644
--- a/src/arch/x86/process.cc
+++ b/src/arch/x86/process.cc
@@ -184,7 +184,7 @@ I386LiveProcess::I386LiveProcess(LiveProcessParams *params,
// Set up region for mmaps. This was determined empirically and may not
// always be correct.
- mmap_start = mmap_end = (Addr)0xf7ffd000ULL;
+ mmap_start = mmap_end = (Addr)0xf7ffe000ULL;
}
SyscallDesc*