rework langinfo code for ABI compat and for use by time code
[musl] / src / thread / x86_64 / syscall_cp.s
1 .text
2 .global __syscall_cp_asm
3 .type   __syscall_cp_asm,@function
4 __syscall_cp_asm:
5
6 .global __cp_begin
7 __cp_begin:
8         mov (%rdi),%eax
9         test %eax,%eax
10         jnz __cancel
11         mov %rdi,%r11
12         mov %rsi,%rax
13         mov %rdx,%rdi
14         mov %rcx,%rsi
15         mov %r8,%rdx
16         mov %r9,%r10
17         mov 8(%rsp),%r8
18         mov 16(%rsp),%r9
19         mov %r11,8(%rsp)
20         syscall
21 .global __cp_end
22 __cp_end:
23         ret