aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-07-24 17:59:53 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2024-07-24 20:12:14 +0200
commit9771390f8980ef455cd0113840556e58ebea4ba1 (patch)
tree840d1777b2348a404f77990785dc15a097131d90 /lib/std/start.zig
parent58e38ff1f82b19ee529f0f5abe74a2c03c204dfe (diff)
downloadzig-9771390f8980ef455cd0113840556e58ebea4ba1.tar.gz
zig-9771390f8980ef455cd0113840556e58ebea4ba1.zip
start: Simplify the sparc64 inline asm a bit.
Diffstat (limited to 'lib/std/start.zig')
-rw-r--r--lib/std/start.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig
index 336526b7b4..4c3329a01c 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"),