Browse Source

generic c version of __set_thread_area for archs where it works

on other archs, like x86[_64], asm version is required
Rich Felker 12 years ago
parent
commit
d0bfbd9dca
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/thread/__set_thread_area.c

+ 5 - 1
src/thread/__set_thread_area.c

@@ -2,5 +2,9 @@
 
 int __set_thread_area(void *p)
 {
-	return -1;
+#ifdef SYS_set_thread_area
+	return __syscall(SYS_set_thread_area, p);
+#else
+	return -ENOSYS;
+#endif
 }