From: Rich Felker Date: Thu, 27 Sep 2012 22:56:10 +0000 (-0400) Subject: fix arm clone syscall bug (no effect unless app uses clone) X-Git-Tag: v0.9.7~82 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e0ea44cb764fcdbe8515f22096930bede2c7896f;p=oweals%2Fmusl.git fix arm clone syscall bug (no effect unless app uses clone) the code to exit the new thread/process after the start function returns was mixed up in its syscall convention. --- diff --git a/src/thread/arm/clone.s b/src/thread/arm/clone.s index ce372ad3..daf8f556 100644 --- a/src/thread/arm/clone.s +++ b/src/thread/arm/clone.s @@ -27,8 +27,7 @@ clone: bne 1f mov lr,pc mov pc,r5 -2: mov r1,r0 - mov r0,#1 +2: mov r7,#1 svc 0 1: mov lr,pc