musl: Align the stack pointer given to clone() on riscv.

This commit is contained in:
Alex Rønne Petersen 2025-02-08 05:31:27 +01:00
parent bfabb703e3
commit 975cd9fc4f
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,8 @@
.global __clone
.type __clone, %function
__clone:
andi a1, a1, -16
# Save func and arg to stack
addi a1, a1, -16
sw a0, 0(a1)

View File

@ -7,6 +7,8 @@
.global __clone
.type __clone, %function
__clone:
andi a1, a1, -16
# Save func and arg to stack
addi a1, a1, -16
sd a0, 0(a1)