start: Fix arm stack alignment code to work for thumb too.

This commit is contained in:
Alex Rønne Petersen 2024-08-29 16:07:46 +02:00
parent f021ad548f
commit 0ecc6332b4
No known key found for this signature in database

View File

@ -283,7 +283,9 @@ fn _start() callconv(.Naked) noreturn {
\\ mov fp, #0
\\ mov lr, #0
\\ mov a1, sp
\\ and sp, #-16
\\ mov ip, sp
\\ and ip, ip, #-16
\\ mov sp, ip
\\ b %[posixCallMainAndExit]
,
.csky =>