From e0ea44cb764fcdbe8515f22096930bede2c7896f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 27 Sep 2012 18:56:10 -0400 Subject: 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. --- src/thread/arm/clone.s | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/thread') 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 -- cgit v1.2.1