summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-09-01 06:36:00 +0000
committermarcel <marcel@FreeBSD.org>2006-09-01 06:36:00 +0000
commit2d71eb396a91ace84e93731fcfdbb91e152c019a (patch)
tree405d3726b0bdd55275019ab5400877dc12d27499 /lib
parentaa70489a8b2cb5b6f0117f88f237c5b014a8f0fa (diff)
downloadFreeBSD-src-2d71eb396a91ace84e93731fcfdbb91e152c019a.zip
FreeBSD-src-2d71eb396a91ace84e93731fcfdbb91e152c019a.tar.gz
Rename TLS_TP_OFFSET back to TP_OFFSET. The former clashes with rtld.
Diffstat (limited to 'lib')
-rw-r--r--lib/libthr/arch/powerpc/include/pthread_md.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libthr/arch/powerpc/include/pthread_md.h b/lib/libthr/arch/powerpc/include/pthread_md.h
index a4e737c..e8ca8b3 100644
--- a/lib/libthr/arch/powerpc/include/pthread_md.h
+++ b/lib/libthr/arch/powerpc/include/pthread_md.h
@@ -37,7 +37,7 @@
#include <sys/types.h>
#define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
-#define TLS_TP_OFFSET 0x7008
+#define TP_OFFSET 0x7008
/*
* Variant I tcb. The structure layout is fixed, don't blindly
@@ -58,7 +58,7 @@ _tcb_set(struct tcb *tcb)
register uint8_t *_tp __asm__("%r2");
__asm __volatile("mr %0,%1" : "=r"(_tp) :
- "r"((uint8_t *)tcb + TLS_TP_OFFSET));
+ "r"((uint8_t *)tcb + TP_OFFSET));
}
static __inline struct tcb *
@@ -66,7 +66,7 @@ _tcb_get(void)
{
register uint8_t *_tp __asm__("%r2");
- return ((struct tcb *)(_tp - TLS_TP_OFFSET));
+ return ((struct tcb *)(_tp - TP_OFFSET));
}
extern struct pthread *_thr_initial;
OpenPOWER on IntegriCloud