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.
This commit is contained in:
parent
68dbd05039
commit
e0ea44cb76
1 changed files with 1 additions and 2 deletions
|
|
@ -27,8 +27,7 @@ clone:
|
||||||
bne 1f
|
bne 1f
|
||||||
mov lr,pc
|
mov lr,pc
|
||||||
mov pc,r5
|
mov pc,r5
|
||||||
2: mov r1,r0
|
2: mov r7,#1
|
||||||
mov r0,#1
|
|
||||||
svc 0
|
svc 0
|
||||||
|
|
||||||
1: mov lr,pc
|
1: mov lr,pc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue