restore use of .type in asm, but use modern @function (vs %function)
[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         pushl %ebx
6         pushl %esi
7         pushl %edi
8         pushl %ebp
9         leal 20(%esp),%ebp
10         call 1f
11 1:      popl %eax
12         movl (%ebp),%ecx
13         addl $[1f-1b],%eax
14         movl %eax,4(%ecx)
15         movl %esp,(%ecx)
16         movl 8(%ecx),%eax
17         testl %eax,%eax
18         jnz 2f
19         movl 4(%ebp),%eax
20         movl 8(%ebp),%ebx
21         movl 12(%ebp),%ecx
22         movl 16(%ebp),%edx
23         movl 20(%ebp),%esi
24         movl 24(%ebp),%edi
25         movl 28(%ebp),%ebp
26 1:      int $128
27         popl %ebp
28         popl %edi
29         popl %esi
30         popl %ebx
31         xorl %edx,%edx
32         movl 4(%esp),%ecx
33         movl %edx,(%ecx)
34         ret
35 2:      call __cancel