rework langinfo code for ABI compat and for use by time code
[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         push %ebx
6         push $0x51
7         push $0xfffff
8         push 16(%esp)
9         push $-1
10         mov %esp,%ebx
11         xor %eax,%eax
12         mov $243,%al
13         int $128
14         testl %eax,%eax
15         jnz 1f
16         movl (%esp),%ecx
17         leal 3(,%ecx,8),%ecx
18         movw %cx,%gs
19 1:
20         addl $16,%esp
21         popl %ebx
22         ret