faf73ec46622784f60feaeab8d985fe1e9656827
[musl] / src / thread / x86_64 / __set_thread_area.s
1 /* Copyright 2011 Nicholas J. Kain, licensed GNU LGPL 2.1 or later */
2 .text
3 .global __set_thread_area
4 .type   __set_thread_area,%function
5 __set_thread_area:
6         mov %rdi,%rsi           /* shift for syscall */
7         movl $0x1002,%edi       /* SET_FS register */
8         movl $158,%eax          /* set fs segment to */
9         syscall                 /* arch_prctl(SET_FS, arg)*/
10         ret
11 .size __set_thread_area,.-__set_thread_area