authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-06-04 00:50:39+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-06-04 00:54:35+02:00
log8f8ca023ea98a1745fc5f75475167806d791a255
treebd681e9d3261f74028d5a415dc4a49dd76e09bcf
parent52d33b6ae41e86e81423d0dcb3e072de7be53789
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os.linux.sparc64: align the child stack pointer in clone()


1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/os/linux/sparc64.zig+2-1
...@@ -212,7 +212,8 @@ pub fn clone() callconv(.naked) u64 {...@@ -212,7 +212,8 @@ pub fn clone() callconv(.naked) u64 {
212 \\ mov 217, %%g1 // SYS_clone212 \\ mov 217, %%g1 // SYS_clone
213 \\ mov %%i2, %%o0213 \\ mov %%i2, %%o0
214 \\214 \\
215 \\ # Add some extra space for the initial frame215 \\ # Align, and add some extra space for the initial frame
216 \\ and %%i1, -16, %%i1
216 \\ sub %%i1, 192 + 2047, %%o1217 \\ sub %%i1, 192 + 2047, %%o1
217 \\218 \\
218 \\ mov %%i4, %%o2219 \\ mov %%i4, %%o2