projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68dbd05
)
fix arm clone syscall bug (no effect unless app uses clone)
author
Rich Felker
<dalias@aerifal.cx>
Thu, 27 Sep 2012 22:56:10 +0000
(18:56 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 27 Sep 2012 22:56:10 +0000
(18:56 -0400)
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
patch
|
blob
|
history
diff --git
a/src/thread/arm/clone.s
b/src/thread/arm/clone.s
index ce372ad335099b8acfce553112d75efff6895ba9..daf8f5562ab3568422da38b3b98206ac12ce31fb 100644
(file)
--- 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