Fix TLS for statically linked binaries

Approved by:	cognet
This commit is contained in:
Oleksandr Tymoshenko 2012-03-18 03:42:54 +00:00
parent 6c2b936bbb
commit 7dc77cabb9

View File

@ -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;
}