From: Rich Felker Date: Thu, 12 Jul 2012 00:44:38 +0000 (-0400) Subject: fix clone() on mips (args were in wrong order) X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=715b6403ce25110d594c7814e9cff860486a6f85;ds=sidebyside fix clone() on mips (args were in wrong order) with this change, threads on mips seem to be working --- diff --git a/src/thread/mips/clone.s b/src/thread/mips/clone.s index 09a1a83f..a7c2d907 100644 --- a/src/thread/mips/clone.s +++ b/src/thread/mips/clone.s @@ -5,9 +5,8 @@ __clone: # Save function pointer and argument pointer move $25, $4 move $8, $7 - # Shuffle (fn,sp,fl,arg,ptid,tls,ctid) to (sp,fl,ptid,tls,ctid) - move $4, $5 - move $5, $6 + # Shuffle (fn,sp,fl,arg,ptid,tls,ctid) to (fl,sp,ptid,tls,ctid) + move $4, $6 lw $6, 16($sp) lw $7, 20($sp) lw $9, 24($sp)