diff options
author | gonzo <gonzo@FreeBSD.org> | 2012-03-18 03:42:54 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2012-03-18 03:42:54 +0000 |
commit | 3d68feb2a657d1a59ae8a724d8d65373b01c4600 (patch) | |
tree | c5abe319c38c645cf89b18657ad59d3f93993f11 /lib/libc/arm/gen/_set_tp.c | |
parent | 51f018d43a73aa6ad7c899b9bf674d14675ecc54 (diff) | |
download | FreeBSD-src-3d68feb2a657d1a59ae8a724d8d65373b01c4600.zip FreeBSD-src-3d68feb2a657d1a59ae8a724d8d65373b01c4600.tar.gz |
Fix TLS for statically linked binaries
Approved by: cognet
Diffstat (limited to 'lib/libc/arm/gen/_set_tp.c')
-rw-r--r-- | lib/libc/arm/gen/_set_tp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/arm/gen/_set_tp.c b/lib/libc/arm/gen/_set_tp.c index 4c26dff..9307d95 100644 --- a/lib/libc/arm/gen/_set_tp.c +++ b/lib/libc/arm/gen/_set_tp.c @@ -29,7 +29,11 @@ #include <string.h> #include <stdint.h> +#include <machine/sysarch.h> + void _set_tp(void *tp) { + + *((struct tcb **)ARM_TP_ADDRESS) = tp; } |