1570af302Sopenharmony_ci/* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */ 2570af302Sopenharmony_ci.text 3570af302Sopenharmony_ci.global __set_thread_area 4570af302Sopenharmony_ci.hidden __set_thread_area 5570af302Sopenharmony_ci.type __set_thread_area,@function 6570af302Sopenharmony_ci__set_thread_area: 7570af302Sopenharmony_ci mov %edi,%esi /* shift for syscall */ 8570af302Sopenharmony_ci movl $0x1002,%edi /* SET_FS register */ 9570af302Sopenharmony_ci movl $0x4000009e,%eax /* set fs segment to */ 10570af302Sopenharmony_ci syscall /* arch_prctl(SET_FS, arg)*/ 11570af302Sopenharmony_ci ret 12