svn commit: r233106 - head/lib/libc/arm/gen
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Sun Mar 18 03:42:54 UTC 2012
Author: gonzo
Date: Sun Mar 18 03:42:54 2012
New Revision: 233106
URL: http://svn.freebsd.org/changeset/base/233106
Log:
Fix TLS for statically linked binaries
Approved by: cognet
Modified:
head/lib/libc/arm/gen/_set_tp.c
Modified: head/lib/libc/arm/gen/_set_tp.c
==============================================================================
--- head/lib/libc/arm/gen/_set_tp.c Sun Mar 18 02:19:30 2012 (r233105)
+++ head/lib/libc/arm/gen/_set_tp.c Sun Mar 18 03:42:54 2012 (r233106)
@@ -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;
}
More information about the svn-src-all
mailing list