zig/lib/std/os/plan9
Jacob G-W c842deea75 os/plan9: fix order of register setting in syscall1
We need to set rbp last because the arguments are stored on the
stack. If we clobber rbp first, then we will get a segfault when
trying to access the function arguments.

I believe I had already done this with the other syscall* functions,
but not with syscall1, so this allows single argument syscalls like
close to work.
2023-06-10 11:36:32 +03:00
..
x86_64.zig os/plan9: fix order of register setting in syscall1 2023-06-10 11:36:32 +03:00