mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
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.