remove all .size and .type directives for functions from the asm
[musl] / src / thread / x86_64 / syscall_cp.s
index 1894ce1..2081928 100644 (file)
@@ -1,6 +1,5 @@
 .text
 .global __syscall_cp_asm
-.type   __syscall_cp_asm,%function
 __syscall_cp_asm:
        lea 1f(%rip),%rax
        mov %rax,8(%rdi)
@@ -8,6 +7,7 @@ __syscall_cp_asm:
        mov 16(%rdi),%eax
        test %eax,%eax
        jnz 2f
+       mov %rdi,%r11
        mov %rsi,%rax
        mov %rdx,%rdi
        mov %rcx,%rsi
@@ -15,10 +15,10 @@ __syscall_cp_asm:
        mov %r9,%r10
        mov 8(%rsp),%r8
        mov 16(%rsp),%r9
+       mov %r11,8(%rsp)
 1:     syscall
+       xor %ecx,%ecx
+       mov 8(%rsp),%rdi
+       mov %rcx,(%rdi)
        ret
-2:     xor %edi,%edi
-       mov %rdi,8(%r10)
-       mov %rdi,(%r10)
-       dec %rdi
-       jmp pthread_exit
+2:     call __cancel