changeset df8e64db0fd8 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=df8e64db0fd8
description:
        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 <[email protected]>

diffstat:

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

diffs (12 lines):

diff -r 64dc8cc09e63 -r df8e64db0fd8 src/arch/x86/process.cc
--- a/src/arch/x86/process.cc   Tue Apr 23 15:21:30 2013 -0500
+++ b/src/arch/x86/process.cc   Tue Apr 23 15:21:32 2013 -0500
@@ -98,7 +98,7 @@
     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
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to