X86: Hook up time syscall on X86
authorVince Weaver <vince@csl.cornell.edu>
Wed, 4 Nov 2009 05:19:15 +0000 (00:19 -0500)
committerVince Weaver <vince@csl.cornell.edu>
Wed, 4 Nov 2009 05:19:15 +0000 (00:19 -0500)
This has been tested and verified that it works.

src/arch/x86/linux/syscalls.cc

index 2a7fd8d4ea00da400edb063141738acddd6db064..6a659108fd589a6b4f3123293b13fb1edcbb5934 100644 (file)
@@ -432,7 +432,7 @@ SyscallDesc X86_64LinuxProcess::syscallDescs[] = {
     /* 198 */ SyscallDesc("lremovexattr", unimplementedFunc),
     /* 199 */ SyscallDesc("fremovexattr", unimplementedFunc),
     /* 200 */ SyscallDesc("tkill", unimplementedFunc),
-    /* 201 */ SyscallDesc("time", unimplementedFunc),
+    /* 201 */ SyscallDesc("time", timeFunc<X86Linux64>),
     /* 202 */ SyscallDesc("futex", ignoreFunc),
     /* 203 */ SyscallDesc("sched_setaffinity", unimplementedFunc),
     /* 204 */ SyscallDesc("sched_getaffinity", unimplementedFunc),
@@ -523,7 +523,7 @@ SyscallDesc I386LinuxProcess::syscallDescs[] = {
     /*  10 */ SyscallDesc("unlink", unimplementedFunc),
     /*  11 */ SyscallDesc("execve", unimplementedFunc),
     /*  12 */ SyscallDesc("chdir", unimplementedFunc),
-    /*  13 */ SyscallDesc("time", unimplementedFunc),
+    /*  13 */ SyscallDesc("time", timeFunc<X86Linux32>),
     /*  14 */ SyscallDesc("mknod", unimplementedFunc),
     /*  15 */ SyscallDesc("chmod", unimplementedFunc),
     /*  16 */ SyscallDesc("lchown", unimplementedFunc),