diff options
| author | Jacob G-W <jacoblevgw@gmail.com> | 2023-06-09 20:32:33 -0400 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2023-06-10 11:36:32 +0300 |
| commit | c842deea757a3de7565b6b06f5e6c0b5cc883827 (patch) | |
| tree | c644349a804231edd0b065ba90dbf06d2263cf46 /lib/std/Build/Step/Compile.zig | |
| parent | 34d44e0c1c2cdfc5916dd5c56914f181f87e8d85 (diff) | |
| download | zig-c842deea757a3de7565b6b06f5e6c0b5cc883827.tar.gz zig-c842deea757a3de7565b6b06f5e6c0b5cc883827.zip | |
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.
Diffstat (limited to 'lib/std/Build/Step/Compile.zig')
0 files changed, 0 insertions, 0 deletions
