1 /* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */
3 .global __set_thread_area
4 .type __set_thread_area,@function
6 mov %edi,%esi /* shift for syscall */
7 movl $0x1002,%edi /* SET_FS register */
8 movl $0x4000009e,%eax /* set fs segment to */
9 syscall /* arch_prctl(SET_FS, arg)*/