start: Add POSIX loongarch64 startup code.

This commit is contained in:
Alex Rønne Petersen 2024-07-22 12:58:07 +02:00
parent 1fa5ca24fe
commit c53673276b
No known key found for this signature in database

View File

@ -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