mirror of
https://github.com/ziglang/zig.git
synced 2025-02-08 21:50:33 +00:00
start: Add POSIX arc support.
This commit is contained in:
parent
7c98a65ae4
commit
389ce984b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user