authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-24 17:59:53+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-24 20:12:14+02:00
log9771390f8980ef455cd0113840556e58ebea4ba1
tree840d1777b2348a404f77990785dc15a097131d90
parent58e38ff1f82b19ee529f0f5abe74a2c03c204dfe
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

start: Simplify the sparc64 inline asm a bit.


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

lib/std/start.zig+2-3
...@@ -381,9 +381,8 @@ fn _start() callconv(.Naked) noreturn {...@@ -381,9 +381,8 @@ fn _start() callconv(.Naked) noreturn {
381 .sparc64 =>381 .sparc64 =>
382 // argc is stored after a register window (16 registers * 8 bytes) plus the stack bias382 // argc is stored after a register window (16 registers * 8 bytes) plus the stack bias
383 // (2047 bytes).383 // (2047 bytes).
384 \\ mov %%g0, %%i6384 \\ mov %%g0, %%fp
385 \\ add %%o6, 2175, %%l0385 \\ add %%sp, 2175, %%o0
386 \\ mov %%l0, %%o0
387 \\ ba,a %[posixCallMainAndExit]386 \\ ba,a %[posixCallMainAndExit]
388 ,387 ,
389 else => @compileError("unsupported arch"),388 else => @compileError("unsupported arch"),