authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-06-21 14:13:43-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-07-03 15:19:50-07:00
log5ef70b8b87399700026b0d314f28aee7de321382
treed34051d168dcc590b9d2eba40aa5a3d1dcf057e4
parente75dfbcb3f1892f67fa9a86157bc503fad300772

mips: fix syscall_pipe

Previously the fd parameter was ignored and so the result would not get populated. Now it passes the fd pointer to the inline assembly so that the results can be observed.

1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/os/linux/mips.zig+2-1
......@@ -31,7 +31,8 @@ pub fn syscall_pipe(fd: *[2]i32) usize {
3131 \\ sw $3, 4($4)
3232 \\ 2:
3333 : [ret] "={$2}" (-> usize)
34 : [number] "{$2}" (@enumToInt(SYS.pipe))
34 : [number] "{$2}" (@enumToInt(SYS.pipe)),
35 [fd] "{$4}" (fd)
3536 : "memory", "cc", "$7"
3637 );
3738}