diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-07-28 21:18:53 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-07-28 21:18:53 -0700 |
commit | dc86f3229c2d3278bf5f32fb9b0b4bf039c0735e (patch) | |
tree | 62706b3aec5f8ecab975b7c6d641fe13045af80e /src/arch/x86 | |
parent | fe46e28b149876e41e91d6210040bcfed32d14ca (diff) | |
download | gem5-dc86f3229c2d3278bf5f32fb9b0b4bf039c0735e.tar.xz |
X86: Fix a comment and adjust the stack base address.
The stack base on my development machine starts one page below where it needs to. I don't know why it does, but I've duplicated it in m5.
--HG--
extra : convert_revision : c4783ba885b90f17e843f61e07af0bc3330a74bc
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/process.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc index 713e5d0a2..ff23be339 100644 --- a/src/arch/x86/process.cc +++ b/src/arch/x86/process.cc @@ -122,9 +122,10 @@ X86LiveProcess::X86LiveProcess(const std::string &nm, ObjectFile *objFile, // Set pointer for next thread stack. Reserve 8M for main stack. next_thread_stack_base = stack_base - (8 * 1024 * 1024); - // Set up stack. On SPARC Linux, stack goes from the top of memory - // downward, less the hole for the kernel address space. - stack_base = (Addr)0x80000000000ULL; + // Set up stack. On X86_64 Linux, stack goes from the top of memory + // downward, less the hole for the kernel address space plus one page + // for undertermined purposes. + stack_base = (Addr)0x7FFFFFFF000ULL; // Set up region for mmaps. Tru64 seems to start just above 0 and // grow up from there. |