summaryrefslogtreecommitdiffstats
path: root/lib/libc/mips/gen
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2012-03-06 03:30:09 +0000
committergonzo <gonzo@FreeBSD.org>2012-03-06 03:30:09 +0000
commitece21645a2c9e9413d1746abdbd9e3009d2a975d (patch)
tree76785a23a51e0298b5a9fb980ff8e43dce303b31 /lib/libc/mips/gen
parent550ac78f0e50c0230e845dd98c2287a983b90acc (diff)
downloadFreeBSD-src-ece21645a2c9e9413d1746abdbd9e3009d2a975d.zip
FreeBSD-src-ece21645a2c9e9413d1746abdbd9e3009d2a975d.tar.gz
Implement _set_tp
Diffstat (limited to 'lib/libc/mips/gen')
-rw-r--r--lib/libc/mips/gen/_set_tp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/mips/gen/_set_tp.c b/lib/libc/mips/gen/_set_tp.c
index 4c26dff..0bf04b52 100644
--- a/lib/libc/mips/gen/_set_tp.c
+++ b/lib/libc/mips/gen/_set_tp.c
@@ -29,7 +29,11 @@
#include <string.h>
#include <stdint.h>
+#include <machine/sysarch.h>
+
void
_set_tp(void *tp)
{
+
+ sysarch(MIPS_SET_TLS, tp);
}
OpenPOWER on IntegriCloud