X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fi386%2F__set_thread_area.s;h=cccf1cd3dd751f2a1446d4f927a29aca4b992bbb;hb=9b153c043ea486d28f96a7e01419f650fe0e1b26;hp=9bf698b5610ebe7e1b9a2da2a05eba16064881d4;hpb=7b2dd2235dd0db3a2f71e25d1c0925e0348e1996;p=musl diff --git a/src/thread/i386/__set_thread_area.s b/src/thread/i386/__set_thread_area.s index 9bf698b5..cccf1cd3 100644 --- a/src/thread/i386/__set_thread_area.s +++ b/src/thread/i386/__set_thread_area.s @@ -1,22 +1,22 @@ .text .global __set_thread_area -.type __set_thread_area,%function +.type __set_thread_area,@function __set_thread_area: - pushl %ebx - movl 8(%esp),%ecx - movl $-1,4(%ecx) - movl %ecx,8(%ecx) - movl $0xfffff,12(%ecx) - movl $0x51,16(%ecx) - leal 4(%ecx),%ebx - movl $243,%eax + push %ebx + push $0x51 + push $0xfffff + push 16(%esp) + push $-1 + mov %esp,%ebx + xor %eax,%eax + mov $243,%al int $128 - popl %ebx testl %eax,%eax jnz 1f - movl 4(%ecx),%ecx + movl (%esp),%ecx leal 3(,%ecx,8),%ecx movw %cx,%gs 1: + addl $16,%esp + popl %ebx ret -.size __set_thread_area,.-__set_thread_area