about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/thread/__set_thread_area.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/thread/__set_thread_area.c b/src/thread/__set_thread_area.c
index 136be575..152a6a21 100644
--- a/src/thread/__set_thread_area.c
+++ b/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
 }