X86: Make successive anonymous mmaps move down in 32 bit SE mode Linux.

This commit is contained in:
Gabe Black
2009-10-02 01:32:58 -07:00
parent 86f3bec76d
commit 44ceb80c2d
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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*