aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorJacob G-W <jacoblevgw@gmail.com>2023-06-09 20:32:33 -0400
committerVeikka Tuominen <git@vexu.eu>2023-06-10 11:36:32 +0300
commitc842deea757a3de7565b6b06f5e6c0b5cc883827 (patch)
treec644349a804231edd0b065ba90dbf06d2263cf46 /src/Module.zig
parent34d44e0c1c2cdfc5916dd5c56914f181f87e8d85 (diff)
downloadzig-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 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions