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