| ... | @@ -280,12 +280,14 @@ fn _start() callconv(.Naked) noreturn { | ... | @@ -280,12 +280,14 @@ fn _start() callconv(.Naked) noreturn { |
| 280 | \\ b %[posixCallMainAndExit] | 280 | \\ b %[posixCallMainAndExit] |
| 281 | , | 281 | , |
| 282 | .arm, .armeb, .thumb, .thumbeb => | 282 | .arm, .armeb, .thumb, .thumbeb => |
| 283 | \\ mov fp, #0 | 283 | // Note that this code must work for Thumb-1. |
| 284 | \\ mov lr, #0 | 284 | \\ movs v1, #0 |
| | 285 | \\ mov fp, v1 |
| | 286 | \\ mov lr, v1 |
| 285 | \\ mov a1, sp | 287 | \\ mov a1, sp |
| 286 | \\ mov ip, sp | 288 | \\ subs v1, #16 |
| 287 | \\ and ip, ip, #-16 | 289 | \\ ands v1, a1 |
| 288 | \\ mov sp, ip | 290 | \\ mov sp, v1 |
| 289 | \\ b %[posixCallMainAndExit] | 291 | \\ b %[posixCallMainAndExit] |
| 290 | , | 292 | , |
| 291 | .csky => | 293 | .csky => |