x86: enable gettimeofday and getppid system calls
authorMichael Levenhagen <mjleven@sandia.gov>
Tue, 23 Apr 2013 20:21:30 +0000 (15:21 -0500)
committerMichael Levenhagen <mjleven@sandia.gov>
Tue, 23 Apr 2013 20:21:30 +0000 (15:21 -0500)
Committed by: Nilay Vaish <nilay@cs.wisc.edu>

src/arch/x86/linux/syscalls.cc

index 19f09998a56529d3b8fe22a13bc51cf60d6a93e2..f1cc3fe7c6796a4ad05bbb28792fb123d8f3ca18 100644 (file)
@@ -309,7 +309,7 @@ SyscallDesc X86_64LinuxProcess::syscallDescs[] = {
     /*  93 */ SyscallDesc("fchown", unimplementedFunc),
     /*  94 */ SyscallDesc("lchown", unimplementedFunc),
     /*  95 */ SyscallDesc("umask", unimplementedFunc),
-    /*  96 */ SyscallDesc("gettimeofday", unimplementedFunc),
+    /*  96 */ SyscallDesc("gettimeofday", gettimeofdayFunc<X86Linux64>),
     /*  97 */ SyscallDesc("getrlimit", getrlimitFunc<X86Linux64>),
     /*  98 */ SyscallDesc("getrusage", getrusageFunc<X86Linux64>),
     /*  99 */ SyscallDesc("sysinfo", sysinfoFunc<X86Linux64>),
@@ -323,7 +323,7 @@ SyscallDesc X86_64LinuxProcess::syscallDescs[] = {
     /* 107 */ SyscallDesc("geteuid", geteuidFunc),
     /* 108 */ SyscallDesc("getegid", getegidFunc),
     /* 109 */ SyscallDesc("setpgid", unimplementedFunc),
-    /* 110 */ SyscallDesc("getppid", unimplementedFunc),
+    /* 110 */ SyscallDesc("getppid", getppidFunc),
     /* 111 */ SyscallDesc("getpgrp", unimplementedFunc),
     /* 112 */ SyscallDesc("setsid", unimplementedFunc),
     /* 113 */ SyscallDesc("setreuid", unimplementedFunc),