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
This commit is contained in:
Gabe Black 2007-07-28 21:18:53 -07:00
parent fe46e28b14
commit dc86f3229c

View file

@ -122,9 +122,10 @@ X86LiveProcess::X86LiveProcess(const std::string &nm, ObjectFile *objFile,
// Set pointer for next thread stack. Reserve 8M for main stack. // Set pointer for next thread stack. Reserve 8M for main stack.
next_thread_stack_base = stack_base - (8 * 1024 * 1024); next_thread_stack_base = stack_base - (8 * 1024 * 1024);
// Set up stack. On SPARC Linux, stack goes from the top of memory // Set up stack. On X86_64 Linux, stack goes from the top of memory
// downward, less the hole for the kernel address space. // downward, less the hole for the kernel address space plus one page
stack_base = (Addr)0x80000000000ULL; // for undertermined purposes.
stack_base = (Addr)0x7FFFFFFF000ULL;
// Set up region for mmaps. Tru64 seems to start just above 0 and // Set up region for mmaps. Tru64 seems to start just above 0 and
// grow up from there. // grow up from there.