mirror of
git://git.musl-libc.org/musl
synced 2025-03-09 21:27:38 +00:00
fix clone() on mips (args were in wrong order)
with this change, threads on mips seem to be working
This commit is contained in:
parent
5c94367a9b
commit
715b6403ce
@ -5,9 +5,8 @@ __clone:
|
|||||||
# Save function pointer and argument pointer
|
# Save function pointer and argument pointer
|
||||||
move $25, $4
|
move $25, $4
|
||||||
move $8, $7
|
move $8, $7
|
||||||
# Shuffle (fn,sp,fl,arg,ptid,tls,ctid) to (sp,fl,ptid,tls,ctid)
|
# Shuffle (fn,sp,fl,arg,ptid,tls,ctid) to (fl,sp,ptid,tls,ctid)
|
||||||
move $4, $5
|
move $4, $6
|
||||||
move $5, $6
|
|
||||||
lw $6, 16($sp)
|
lw $6, 16($sp)
|
||||||
lw $7, 20($sp)
|
lw $7, 20($sp)
|
||||||
lw $9, 24($sp)
|
lw $9, 24($sp)
|
||||||
|
Loading…
Reference in New Issue
Block a user