aboutsummaryrefslogtreecommitdiff
path: root/src/thread/__set_thread_area.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-07-11 11:34:46 -0400
committerRich Felker <dalias@aerifal.cx>2012-07-11 11:34:46 -0400
commitd0bfbd9dca27e3053534bbf70b36e229d0c0cf21 (patch)
treeae0a6faf7b78e50583dd0516e18be3dfe3c1e1a1 /src/thread/__set_thread_area.c
parentinitial version of mips (o32) port, based on work by Richard Pennington (rdp) (diff)
downloadgrovel-d0bfbd9dca27e3053534bbf70b36e229d0c0cf21.tar.gz
grovel-d0bfbd9dca27e3053534bbf70b36e229d0c0cf21.tar.xz
generic c version of __set_thread_area for archs where it works
on other archs, like x86[_64], asm version is required
Diffstat (limited to 'src/thread/__set_thread_area.c')
-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
}