projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix arm run-time abi string functions
[musl]
/
src
/
thread
/
sh
/
clone.s
diff --git
a/src/thread/sh/clone.s
b/src/thread/sh/clone.s
index
f8ad845
..
aa4d0df
100644
(file)
--- a/
src/thread/sh/clone.s
+++ b/
src/thread/sh/clone.s
@@
-33,10
+33,12
@@
__clone:
nop
1: ! we are the child, call fn(arg)
nop
1: ! we are the child, call fn(arg)
- jsr @r1
- mov r2, r4
+ mov.l 1f, r0
+ mov r1, r5
+ bsrf r0
+ mov r2, r4
-
mov #1, r3 ! __NR_exit
+
2:
mov #1, r3 ! __NR_exit
mov r0, r4
trapa #31
mov r0, r4
trapa #31
@@
-45,3
+47,7
@@
__clone:
or r0, r0
or r0, r0
or r0, r0
or r0, r0
or r0, r0
or r0, r0
+
+.align 2
+.hidden __shcall
+1: .long __shcall@PCREL+(.-2b)