rework langinfo code for ABI compat and for use by time code
[musl] / src / thread / arm / syscall_cp.s
1 .global __syscall_cp_asm
2 .type __syscall_cp_asm,%function
3 __syscall_cp_asm:
4         mov ip,sp
5         stmfd sp!,{r4,r5,r6,r7,lr}
6 .global __cp_begin
7 __cp_begin:
8         ldr r0,[r0]
9         cmp r0,#0
10         blne __cancel
11         mov r7,r1
12         mov r0,r2
13         mov r1,r3
14         ldmfd ip,{r2,r3,r4,r5,r6}
15         svc 0
16 .global __cp_end
17 __cp_end:
18         ldmfd sp!,{r4,r5,r6,r7,lr}
19         tst lr,#1
20         moveq pc,lr
21         bx lr