X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fmipsn32%2Fclone.s;h=4d3c8c7a2502e96a4eafa9b0eaf2534d4e23f59f;hb=21a172dd36cae7a08492fd3a7500d7bf0daee13e;hp=5103585227aa6824cf6d8203f6b3a57479daf143;hpb=5972c4a4113e2a4de5edf519faf15296ae1eb3ed;p=musl diff --git a/src/thread/mipsn32/clone.s b/src/thread/mipsn32/clone.s index 51035852..4d3c8c7a 100644 --- a/src/thread/mipsn32/clone.s +++ b/src/thread/mipsn32/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 @@ -26,5 +27,8 @@ __clone: nop 1: lw $25, 0($sp) # function pointer lw $4, 4($sp) # argument pointer - jr $25 # call the user's function + jalr $25 # call the user's function nop + move $4, $2 + li $2, 6058 + syscall