mirror of https://git.musl-libc.org/git/musl
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
|
@ -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…
Reference in New Issue