diff --git a/lib/std/start.zig b/lib/std/start.zig index 336526b7b4a64326debe5585ba867117e70bfb3a..4c3329a01cbffeb2b9cd5ef595287cfe8d6e23d8 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -381,9 +381,8 @@ fn _start() callconv(.Naked) noreturn { .sparc64 => // argc is stored after a register window (16 registers * 8 bytes) plus the stack bias // (2047 bytes). - \\ mov %%g0, %%i6 - \\ add %%o6, 2175, %%l0 - \\ mov %%l0, %%o0 + \\ mov %%g0, %%fp + \\ add %%sp, 2175, %%o0 \\ ba,a %[posixCallMainAndExit] , else => @compileError("unsupported arch"),