.text
.global __set_thread_area
+.hidden __set_thread_area
.type __set_thread_area,@function
__set_thread_area:
push %ebx
push $0x51
push $0xfffff
push 16(%esp)
- push $-1
+ call 1f
+1: addl $4f-1b,(%esp)
+ pop %ecx
+ mov (%ecx),%edx
+ push %edx
mov %esp,%ebx
xor %eax,%eax
mov $243,%al
testl %eax,%eax
jnz 2f
movl (%esp),%edx
+ movl %edx,(%ecx)
leal 3(,%edx,8),%edx
3: movw %dx,%gs
1:
mov $7,%dl
inc %al
jmp 3b
+
+.data
+ .align 4
+4: .long -1