summaryrefslogtreecommitdiff
path: root/src/thread/arm/clone.s
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-27 18:56:10 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-27 18:56:10 -0400
commite0ea44cb764fcdbe8515f22096930bede2c7896f (patch)
treeb7152d8be4eb07c57514ddc884a31cfb158f2e1b /src/thread/arm/clone.s
parent68dbd05039f8b256f586ed9a589645fa3a1b7f5f (diff)
downloadmusl-e0ea44cb764fcdbe8515f22096930bede2c7896f.tar.gz
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.
Diffstat (limited to 'src/thread/arm/clone.s')
-rw-r--r--src/thread/arm/clone.s3
1 files changed, 1 insertions, 2 deletions
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