summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-07-11 20:44:38 -0400
committerRich Felker <dalias@aerifal.cx>2012-07-11 20:44:38 -0400
commit715b6403ce25110d594c7814e9cff860486a6f85 (patch)
tree33c91f1dd55a41d59c1c7e0a1dbd2b5f5e1e9cc7 /src
parent5c94367a9b0f1c1dd0deadb0f320242b59f844bb (diff)
downloadmusl-715b6403ce25110d594c7814e9cff860486a6f85.tar.gz
musl-715b6403ce25110d594c7814e9cff860486a6f85.tar.bz2
musl-715b6403ce25110d594c7814e9cff860486a6f85.tar.xz
musl-715b6403ce25110d594c7814e9cff860486a6f85.zip
fix clone() on mips (args were in wrong order)
with this change, threads on mips seem to be working
Diffstat (limited to 'src')
-rw-r--r--src/thread/mips/clone.s5
1 files changed, 2 insertions, 3 deletions
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)