Browse Source

fix clone() on mips (args were in wrong order)

with this change, threads on mips seem to be working
Rich Felker 12 years ago
parent
commit
715b6403ce
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/thread/mips/clone.s

+ 2 - 3
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)