mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
loongarch64 __clone: align stack pointer mod 16
According to LoongArch ABI Specs, stack need to be 16 align to improve performance and compiler layout of stack frames.
This commit is contained in:
parent
ec325b3828
commit
80e3b09823
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
.hidden __clone
|
||||
.type __clone,@function
|
||||
__clone:
|
||||
bstrins.d $a1, $zero, 3, 0 #stack to 16 align
|
||||
# Save function pointer and argument pointer on new thread stack
|
||||
addi.d $a1, $a1, -16
|
||||
st.d $a0, $a1, 0 # save function pointer
|
||||
|
|
Loading…
Add table
Reference in a new issue