From: Gabe Black Date: Fri, 2 Oct 2009 08:32:58 +0000 (-0700) Subject: X86: Make successive anonymous mmaps move down in 32 bit SE mode Linux. X-Git-Tag: stable_2012_02_02~1715 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44ceb80c2dd1c4991357292ca27809b5012b9556;p=gem5.git X86: Make successive anonymous mmaps move down in 32 bit SE mode Linux. --- 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*