| ... | @@ -307,6 +307,15 @@ fn _start() callconv(.Naked) noreturn { | ... | @@ -307,6 +307,15 @@ fn _start() callconv(.Naked) noreturn { |
| 307 | \\ and sp, #-16 | 307 | \\ and sp, #-16 |
| 308 | \\ b %[posixCallMainAndExit] | 308 | \\ b %[posixCallMainAndExit] |
| 309 | , | 309 | , |
| | 310 | .hexagon => |
| | 311 | // r29 = SP, r30 = FP |
| | 312 | \\ r30 = #0 |
| | 313 | \\ r0 = r29 |
| | 314 | \\ r29 = and(r29, #-16) |
| | 315 | \\ memw(r29 + #-8) = r29 |
| | 316 | \\ r29 = add(r29, #-8) |
| | 317 | \\ call %[posixCallMainAndExit] |
| | 318 | , |
| 310 | .loongarch32, .loongarch64 => | 319 | .loongarch32, .loongarch64 => |
| 311 | \\ move $fp, $zero | 320 | \\ move $fp, $zero |
| 312 | \\ move $a0, $sp | 321 | \\ move $a0, $sp |