Explorar el Código

generic c version of __set_thread_area for archs where it works

on other archs, like x86[_64], asm version is required
Rich Felker hace 12 años
padre
commit
d0bfbd9dca
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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
 }