X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fmips%2Fclone.s;h=0446338568f0a8add741a32427a5b042fc1036b4;hb=4d3a162d001a93edd285fb6603a883c30ae553ba;hp=37dddf57ba9575c9e849b03ad195b0caea1ddf4a;hpb=cffb9e1ee2a5e8925845f0c9b79cb6c80487302c;p=musl diff --git a/src/thread/mips/clone.s b/src/thread/mips/clone.s index 37dddf57..04463385 100644 --- a/src/thread/mips/clone.s +++ b/src/thread/mips/clone.s @@ -1,5 +1,6 @@ .set noreorder .global __clone +.hidden __clone .type __clone,@function __clone: # Save function pointer and argument pointer on new thread stack @@ -28,5 +29,8 @@ __clone: nop 1: lw $25, 0($sp) lw $4, 4($sp) - jr $25 + jalr $25 nop + move $4, $2 + li $2, 4001 + syscall