1 /* Copyright 2011 Nicholas J. Kain, licensed GNU LGPL 2.1 or later */
3 .global __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)*/