diff options
author | Michael Levenhagen <mjleven@sandia.gov> | 2013-04-23 15:21:32 -0500 |
---|---|---|
committer | Michael Levenhagen <mjleven@sandia.gov> | 2013-04-23 15:21:32 -0500 |
commit | 223f89a162ace3266998482288e6d0d8cbcc2be1 (patch) | |
tree | aa4bb1db1c90c46b2fcd0d80f1d0f38fd668e32a /src/arch/x86/process.cc | |
parent | 794d00257add206cd5fdbcc1f106fbba23079a38 (diff) | |
download | gem5-223f89a162ace3266998482288e6d0d8cbcc2be1.tar.xz |
x86: corrects vsyscall address for gettimeofday
The vsyscall address for gettimeofday is 0xffffffffff600000ul. The offset
therefore should be 0x0 instead of 0x410. This can be cross checked with
the file sysdeps/unix/sysv/linux/x86_64/gettimeofday.c in source of glibc.
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/arch/x86/process.cc')
-rw-r--r-- | src/arch/x86/process.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc index cce8e3a3d..bf7669cdf 100644 --- a/src/arch/x86/process.cc +++ b/src/arch/x86/process.cc @@ -98,7 +98,7 @@ X86_64LiveProcess::X86_64LiveProcess(LiveProcessParams *params, vsyscallPage.base = 0xffffffffff600000ULL; vsyscallPage.size = VMPageSize; vsyscallPage.vtimeOffset = 0x400; - vsyscallPage.vgettimeofdayOffset = 0x410; + vsyscallPage.vgettimeofdayOffset = 0x0; // 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 |