mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
start: Add a comment explaining the sparc64 stack bias.
This commit is contained in:
parent
5c96192c19
commit
58e38ff1f8
1 changed files with 2 additions and 1 deletions
|
|
@ -379,7 +379,8 @@ fn _start() callconv(.Naked) noreturn {
|
|||
\\ jg %[posixCallMainAndExit]
|
||||
,
|
||||
.sparc64 =>
|
||||
// argc is stored after a register window (16 registers) plus stack bias
|
||||
// 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue