start: Add POSIX arc support.

This commit is contained in:
Alex Rønne Petersen 2024-07-24 22:37:26 +02:00
parent 7c98a65ae4
commit 389ce984b5
No known key found for this signature in database

View File

@ -300,6 +300,15 @@ fn _start() callconv(.Naked) noreturn {
\\ and sp, x0, #-16
\\ b %[posixCallMainAndExit]
,
.arc =>
// The `arc` tag currently means ARCv2, which has an unusually low stack alignment
// requirement. ARCv3 increases it from 4 to 16, but we don't support ARCv3 yet.
\\ mov fp, 0
\\ mov blink, 0
\\ mov r0, sp
\\ and sp, sp, -4
\\ b %[posixCallMainAndExit]
,
.arm, .armeb, .thumb, .thumbeb =>
\\ mov fp, #0
\\ mov lr, #0