about summary refs log tree commit diff
path: root/src/thread
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread')
-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
 }