restore use of .type in asm, but use modern @function (vs %function)
[musl] / src / thread / i386 / __set_thread_area.s
1 .text
2 .global __set_thread_area
3 .type   __set_thread_area,@function
4 __set_thread_area:
5         pushl %ebx
6         movl 8(%esp),%ecx
7         movl $-1,4(%ecx)
8         movl %ecx,8(%ecx)
9         movl $0xfffff,12(%ecx)
10         movl $0x51,16(%ecx)
11         leal 4(%ecx),%ebx
12         movl $243,%eax
13         int $128
14         popl %ebx
15         testl %eax,%eax
16         jnz 1f
17         movl 4(%ecx),%ecx
18         leal 3(,%ecx,8),%ecx
19         movw %cx,%gs
20 1:
21         ret