x86: enables lstat and readlink syscalls
authorNilay Vaish <nilay@cs.wisc.edu>
Mon, 7 Oct 2013 23:05:49 +0000 (18:05 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Mon, 7 Oct 2013 23:05:49 +0000 (18:05 -0500)
src/arch/x86/linux/syscalls.cc

index f1cc3fe7c6796a4ad05bbb28792fb123d8f3ca18..8e2d0da016cffe5b9bd51c7fa02b2c62885b2992 100644 (file)
@@ -219,7 +219,7 @@ SyscallDesc X86_64LinuxProcess::syscallDescs[] = {
     /*   3 */ SyscallDesc("close", closeFunc),
     /*   4 */ SyscallDesc("stat", stat64Func<X86Linux64>),
     /*   5 */ SyscallDesc("fstat", fstat64Func<X86Linux64>),
-    /*   6 */ SyscallDesc("lstat", unimplementedFunc),
+    /*   6 */ SyscallDesc("lstat", lstat64Func<X86Linux64>),
     /*   7 */ SyscallDesc("poll", unimplementedFunc),
     /*   8 */ SyscallDesc("lseek", lseekFunc),
     /*   9 */ SyscallDesc("mmap", mmapFunc<X86Linux64>),
@@ -302,7 +302,7 @@ SyscallDesc X86_64LinuxProcess::syscallDescs[] = {
     /*  86 */ SyscallDesc("link", unimplementedFunc),
     /*  87 */ SyscallDesc("unlink", unlinkFunc),
     /*  88 */ SyscallDesc("symlink", unimplementedFunc),
-    /*  89 */ SyscallDesc("readlink", unimplementedFunc),
+    /*  89 */ SyscallDesc("readlink", readlinkFunc),
     /*  90 */ SyscallDesc("chmod", unimplementedFunc),
     /*  91 */ SyscallDesc("fchmod", unimplementedFunc),
     /*  92 */ SyscallDesc("chown", unimplementedFunc),