authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-29 16:07:46+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-31 03:38:35+02:00
log0ecc6332b4eb1ced547ffa38f57471134aaa4d13
tree2c8cf5fbdcb748e4d807a42b612f52c253ce767c
parentf021ad548fd8ad6c7d8d8ea7e7c409c695dce1e5
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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


1 files changed, 3 insertions(+), 1 deletions(-)

lib/std/start.zig+3-1
...@@ -283,7 +283,9 @@ fn _start() callconv(.Naked) noreturn {...@@ -283,7 +283,9 @@ fn _start() callconv(.Naked) noreturn {
283 \\ mov fp, #0283 \\ mov fp, #0
284 \\ mov lr, #0284 \\ mov lr, #0
285 \\ mov a1, sp285 \\ mov a1, sp
286 \\ and sp, #-16286 \\ mov ip, sp
287 \\ and ip, ip, #-16
288 \\ mov sp, ip
287 \\ b %[posixCallMainAndExit]289 \\ b %[posixCallMainAndExit]
288 ,290 ,
289 .csky =>291 .csky =>