rework langinfo code for ABI compat and for use by time code
[musl] / src / thread / i386 / syscall_cp.s
1 .text
2 .global __syscall_cp_asm
3 .type   __syscall_cp_asm,@function
4 __syscall_cp_asm:
5         mov 4(%esp),%ecx
6         pushl %ebx
7         pushl %esi
8         pushl %edi
9         pushl %ebp
10 .global __cp_begin
11 __cp_begin:
12         movl (%ecx),%eax
13         testl %eax,%eax
14         jnz __cancel
15         movl 24(%esp),%eax
16         movl 28(%esp),%ebx
17         movl 32(%esp),%ecx
18         movl 36(%esp),%edx
19         movl 40(%esp),%esi
20         movl 44(%esp),%edi
21         movl 48(%esp),%ebp
22         int $128
23 .global __cp_end
24 __cp_end:
25         popl %ebp
26         popl %edi
27         popl %esi
28         popl %ebx
29         ret