aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/syscall.c')
-rw-r--r--arch/mips/kernel/syscall.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c
index 7e1c70dab767..28daa66baa7b 100644
--- a/arch/mips/kernel/syscall.c
+++ b/arch/mips/kernel/syscall.c
@@ -86,7 +86,7 @@ save_static_function(sys_fork);
86static int __used noinline 86static int __used noinline
87_sys_fork(nabi_no_regargs struct pt_regs regs) 87_sys_fork(nabi_no_regargs struct pt_regs regs)
88{ 88{
89 return do_fork(SIGCHLD, regs.regs[29], 0, NULL, NULL); 89 return do_fork(SIGCHLD, 0, 0, NULL, NULL);
90} 90}
91 91
92save_static_function(sys_clone); 92save_static_function(sys_clone);
@@ -99,8 +99,6 @@ _sys_clone(nabi_no_regargs struct pt_regs regs)
99 99
100 clone_flags = regs.regs[4]; 100 clone_flags = regs.regs[4];
101 newsp = regs.regs[5]; 101 newsp = regs.regs[5];
102 if (!newsp)
103 newsp = regs.regs[29];
104 parent_tidptr = (int __user *) regs.regs[6]; 102 parent_tidptr = (int __user *) regs.regs[6];
105#ifdef CONFIG_32BIT 103#ifdef CONFIG_32BIT
106 /* We need to fetch the fifth argument off the stack. */ 104 /* We need to fetch the fifth argument off the stack. */