authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-24 20:11:36+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-25 00:55:52+02:00
logfff5ce053fcfaf0cf3fea815b4c50c000036ff5b
tree2b346ec656fdb16308ac6f34699aaad481532288
parentebefee608810d947fb9a17e853acd30dc619cb88
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

start: Align the stack on sparc64 just in case.

The kernel does this as required, but we cannot trust dynamic linkers to do it.

1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/start.zig+3
......@@ -378,6 +378,9 @@ fn _start() callconv(.Naked) noreturn {
378378 // (2047 bytes).
379379 \\ mov %%g0, %%fp
380380 \\ add %%sp, 2175, %%o0
381 \\ add %%sp, 2047, %%sp
382 \\ and %%sp, -16, %%sp
383 \\ sub %%sp, 2047, %%sp
381384 \\ ba,a %[posixCallMainAndExit]
382385 ,
383386 else => @compileError("unsupported arch"),