diff options
author | David Hashe <david.hashe@amd.com> | 2015-07-20 09:15:18 -0500 |
---|---|---|
committer | David Hashe <david.hashe@amd.com> | 2015-07-20 09:15:18 -0500 |
commit | d0f6aad3c6709d2ef686dbf3f0c60ac6cbfb7b5a (patch) | |
tree | b52b5bed4a53a30c1e32b40ca1ed59b8f2df50c2 /src/arch/x86/linux | |
parent | 4710eba588cdfe059ab984ec78ff9e49bd7cbe69 (diff) | |
download | gem5-d0f6aad3c6709d2ef686dbf3f0c60ac6cbfb7b5a.tar.xz |
syscall: Add readlink to x86 with special case /proc/self/exe
This patch implements the correct behavior.
Diffstat (limited to 'src/arch/x86/linux')
-rw-r--r-- | src/arch/x86/linux/process.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/x86/linux/process.cc b/src/arch/x86/linux/process.cc index ed17d7388..5bb237c10 100644 --- a/src/arch/x86/linux/process.cc +++ b/src/arch/x86/linux/process.cc @@ -485,7 +485,7 @@ static SyscallDesc syscallDescs64[] = { /* 264 */ SyscallDesc("renameat", unimplementedFunc), /* 265 */ SyscallDesc("linkat", unimplementedFunc), /* 266 */ SyscallDesc("symlinkat", unimplementedFunc), - /* 267 */ SyscallDesc("readlinkat", unimplementedFunc), + /* 267 */ SyscallDesc("readlinkat", readlinkFunc), /* 268 */ SyscallDesc("fchmodat", unimplementedFunc), /* 269 */ SyscallDesc("faccessat", unimplementedFunc), /* 270 */ SyscallDesc("pselect6", unimplementedFunc), @@ -626,7 +626,7 @@ static SyscallDesc syscallDescs32[] = { /* 82 */ SyscallDesc("select", unimplementedFunc), /* 83 */ SyscallDesc("symlink", unimplementedFunc), /* 84 */ SyscallDesc("oldlstat", unimplementedFunc), - /* 85 */ SyscallDesc("readlink", unimplementedFunc), + /* 85 */ SyscallDesc("readlink", readlinkFunc), /* 86 */ SyscallDesc("uselib", unimplementedFunc), /* 87 */ SyscallDesc("swapon", unimplementedFunc), /* 88 */ SyscallDesc("reboot", unimplementedFunc), @@ -846,7 +846,7 @@ static SyscallDesc syscallDescs32[] = { /* 302 */ SyscallDesc("renameat", unimplementedFunc), /* 303 */ SyscallDesc("linkat", unimplementedFunc), /* 304 */ SyscallDesc("symlinkat", unimplementedFunc), - /* 305 */ SyscallDesc("readlinkat", unimplementedFunc), + /* 305 */ SyscallDesc("readlinkat", readlinkFunc), /* 306 */ SyscallDesc("fchmodat", unimplementedFunc), /* 307 */ SyscallDesc("faccessat", unimplementedFunc), /* 308 */ SyscallDesc("pselect6", unimplementedFunc), |