提交 974fdb3c 编写于 作者: A Al Viro

mips: no magic arguments for sysm_pipe()

current_pt_regs() works just fine
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 5e392b8d
...@@ -46,20 +46,14 @@ ...@@ -46,20 +46,14 @@
* argument. Historically that used to be expensive in Linux. These days * argument. Historically that used to be expensive in Linux. These days
* the performance advantage is negligible. * the performance advantage is negligible.
*/ */
asmlinkage int sysm_pipe(nabi_no_regargs volatile struct pt_regs regs) asmlinkage int sysm_pipe(void)
{ {
int fd[2]; int fd[2];
int error, res; int error = do_pipe_flags(fd, 0);
if (error)
error = do_pipe_flags(fd, 0); return error;
if (error) { current_pt_regs()->regs[3] = fd[1];
res = error; return fd[0];
goto out;
}
regs.regs[3] = fd[1];
res = fd[0];
out:
return res;
} }
SYSCALL_DEFINE6(mips_mmap, unsigned long, addr, unsigned long, len, SYSCALL_DEFINE6(mips_mmap, unsigned long, addr, unsigned long, len,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册