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 {
381381 .sparc64 =>
382382 // argc is stored after a register window (16 registers * 8 bytes) plus the stack bias
383383 // (2047 bytes).
384 \\ mov %%g0, %%i6
385 \\ add %%o6, 2175, %%l0
386 \\ mov %%l0, %%o0
384 \\ mov %%g0, %%fp
385 \\ add %%sp, 2175, %%o0
387386 \\ ba,a %[posixCallMainAndExit]
388387 ,
389388 else => @compileError("unsupported arch"),