use bss instead of mmap for main thread's pthread thread-specific data
[oweals/musl.git] / src / thread / __set_thread_area.c
index 576d8b40049399b48a7f4b264c8e47edb25af1f0..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,9 +0,0 @@
-#include "syscall.h"
-
-int __set_thread_area(unsigned long *desc)
-{
-       if (syscall1(__NR_set_thread_area, (long)desc) < 0)
-               return -1;
-       __asm__ __volatile__ ( "movw %w0,%%gs" : : "r"(desc[0]*8+3) );
-       return 0;
-}