zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 5ef70b8b87399700026b0d314f28aee7de321382 (tree)
parent e75dfbcb3f1892f67fa9a86157bc503fad300772
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon, 21 Jun 2021 14:13:43 -0700

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.

Diffstat:
Mlib/std/os/linux/mips.zig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/std/os/linux/mips.zig b/lib/std/os/linux/mips.zig @@ -31,7 +31,8 @@ pub fn syscall_pipe(fd: *[2]i32) usize { \\ sw $3, 4($4) \\ 2: : [ret] "={$2}" (-> usize) - : [number] "{$2}" (@enumToInt(SYS.pipe)) + : [number] "{$2}" (@enumToInt(SYS.pipe)), + [fd] "{$4}" (fd) : "memory", "cc", "$7" ); }