summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Gutierrez <anthony.gutierrez@amd.com>2018-05-01 18:30:07 -0400
committerAnthony Gutierrez <anthony.gutierrez@amd.com>2018-05-02 15:14:38 +0000
commit5a6b76272c52cd85faa99269f0cfa0bcbd0149e0 (patch)
tree4c6e802a99e330b2d6ca286a4715801d50b0feb9
parent5187a24d496cd16bfe440f52ff0c45ab0e185306 (diff)
downloadgem5-5a6b76272c52cd85faa99269f0cfa0bcbd0149e0.tar.xz
arch-x86: Enable the umask system call
Change-Id: I309beb1604657e8d1807ac90458709df57f0f819 Reviewed-on: https://gem5-review.googlesource.com/10161 Reviewed-by: Gabe Black <gabeblack@google.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Brandon Potter <Brandon.Potter@amd.com>
-rw-r--r--src/arch/x86/linux/process.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/linux/process.cc b/src/arch/x86/linux/process.cc
index 1bde67e4d..d464beb91 100644
--- a/src/arch/x86/linux/process.cc
+++ b/src/arch/x86/linux/process.cc
@@ -315,7 +315,7 @@ static SyscallDesc syscallDescs64[] = {
/* 92 */ SyscallDesc("chown", unimplementedFunc),
/* 93 */ SyscallDesc("fchown", unimplementedFunc),
/* 94 */ SyscallDesc("lchown", unimplementedFunc),
- /* 95 */ SyscallDesc("umask", unimplementedFunc),
+ /* 95 */ SyscallDesc("umask", umaskFunc),
/* 96 */ SyscallDesc("gettimeofday", gettimeofdayFunc<X86Linux64>),
/* 97 */ SyscallDesc("getrlimit", getrlimitFunc<X86Linux64>),
/* 98 */ SyscallDesc("getrusage", getrusageFunc<X86Linux64>),
@@ -609,7 +609,7 @@ static SyscallDesc syscallDescs32[] = {
/* 57 */ SyscallDesc("setpgid", setpgidFunc),
/* 58 */ SyscallDesc("ulimit", unimplementedFunc),
/* 59 */ SyscallDesc("oldolduname", unimplementedFunc),
- /* 60 */ SyscallDesc("umask", unimplementedFunc),
+ /* 60 */ SyscallDesc("umask", umaskFunc),
/* 61 */ SyscallDesc("chroot", unimplementedFunc),
/* 62 */ SyscallDesc("ustat", unimplementedFunc),
/* 63 */ SyscallDesc("dup2", dup2Func),