diff options
Diffstat (limited to '')
-rw-r--r-- | libc-top-half/musl/src/thread/x32/__set_thread_area.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/thread/x32/__set_thread_area.s b/libc-top-half/musl/src/thread/x32/__set_thread_area.s new file mode 100644 index 0000000..c0fee87 --- /dev/null +++ b/libc-top-half/musl/src/thread/x32/__set_thread_area.s @@ -0,0 +1,11 @@ +/* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */ +.text +.global __set_thread_area +.hidden __set_thread_area +.type __set_thread_area,@function +__set_thread_area: + mov %edi,%esi /* shift for syscall */ + movl $0x1002,%edi /* SET_FS register */ + movl $0x4000009e,%eax /* set fs segment to */ + syscall /* arch_prctl(SET_FS, arg)*/ + ret |