rework langinfo code for ABI compat and for use by time code
[musl] / src / internal / arm / syscall.s
1 .global __syscall
2 .type __syscall,%function
3 __syscall:
4         mov ip,sp
5         stmfd sp!,{r4,r5,r6,r7}
6         mov r7,r0
7         mov r0,r1
8         mov r1,r2
9         mov r2,r3
10         ldmfd ip,{r3,r4,r5,r6}
11         svc 0
12         ldmfd sp!,{r4,r5,r6,r7}
13         tst lr,#1
14         moveq pc,lr
15         bx lr