about summary refs log tree commit diff
path: root/src/thread/mips64
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/mips64')
-rw-r--r--src/thread/mips64/clone.s5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/thread/mips64/clone.s b/src/thread/mips64/clone.s
index 229d2677..1b71e07c 100644
--- a/src/thread/mips64/clone.s
+++ b/src/thread/mips64/clone.s
@@ -26,5 +26,8 @@ __clone:
 	nop
 1:	ld	$25, 0($sp)	# function pointer
 	ld	$4, 8($sp)	# argument pointer
-	jr	$25		# call the user's function
+	jalr	$25		# call the user's function
 	nop
+	move 	$4, $2
+	li	$2, 5058
+	syscall