arch-x86: Enable the umask system call
authorTony Gutierrez <anthony.gutierrez@amd.com>
Tue, 1 May 2018 22:30:07 +0000 (18:30 -0400)
committerAnthony Gutierrez <anthony.gutierrez@amd.com>
Wed, 2 May 2018 15:14:38 +0000 (15:14 +0000)
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>

src/arch/x86/linux/process.cc

index 1bde67e4d93223b64aeec48b672e4ce48caceb32..d464beb911839df04c218deaadacfe604faeb87c 100644 (file)
@@ -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),