75f19a86d73dc0e2ce8313be449389c589b6e620
[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 __set_thread_area:
5         mov %rdi,%rsi           /* shift for syscall */
6         movl $0x1002,%edi       /* SET_FS register */
7         movl $158,%eax          /* set fs segment to */
8         syscall                 /* arch_prctl(SET_FS, arg)*/
9         ret