zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 8f8ca023ea98a1745fc5f75475167806d791a255 (tree)
parent 52d33b6ae41e86e81423d0dcb3e072de7be53789
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Thu,  4 Jun 2026 00:50:39 +0200

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

Diffstat:
Mlib/std/os/linux/sparc64.zig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/std/os/linux/sparc64.zig b/lib/std/os/linux/sparc64.zig @@ -212,7 +212,8 @@ pub fn clone() callconv(.naked) u64 { \\ mov 217, %%g1 // SYS_clone \\ mov %%i2, %%o0 \\ - \\ # Add some extra space for the initial frame + \\ # Align, and add some extra space for the initial frame + \\ and %%i1, -16, %%i1 \\ sub %%i1, 192 + 2047, %%o1 \\ \\ mov %%i4, %%o2