mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 22:09:49 +00:00
start: Add POSIX loongarch64 startup code.
This commit is contained in:
parent
1fa5ca24fe
commit
c53673276b
@ -300,6 +300,12 @@ fn _start() callconv(.Naked) noreturn {
|
||||
\\ and sp, #-16
|
||||
\\ b %[posixCallMainAndExit]
|
||||
,
|
||||
.loongarch64 =>
|
||||
\\ move $fp, $zero
|
||||
\\ move $a0, $sp
|
||||
\\ bstrins.d $sp, $zero, 3, 0
|
||||
\\ b %[posixCallMainAndExit]
|
||||
,
|
||||
.riscv64 =>
|
||||
\\ li s0, 0
|
||||
\\ li ra, 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user