changeset f8453ff56966 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=f8453ff56966
description:
        X86: Make successive anonymous mmaps move down in 32 bit SE mode Linux.

diffstat:

2 files changed, 4 insertions(+), 2 deletions(-)
src/arch/x86/linux/linux.hh |    4 +++-
src/arch/x86/process.cc     |    2 +-

diffs (26 lines):

diff -r b636411c118e -r f8453ff56966 src/arch/x86/linux/linux.hh
--- a/src/arch/x86/linux/linux.hh       Fri Oct 02 01:32:00 2009 -0700
+++ b/src/arch/x86/linux/linux.hh       Fri Oct 02 01:32:58 2009 -0700
@@ -190,7 +190,9 @@
        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 -r b636411c118e -r f8453ff56966 src/arch/x86/process.cc
--- a/src/arch/x86/process.cc   Fri Oct 02 01:32:00 2009 -0700
+++ b/src/arch/x86/process.cc   Fri Oct 02 01:32:58 2009 -0700
@@ -184,7 +184,7 @@
 
     // 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*
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to