diff options
author | davidxu <davidxu@FreeBSD.org> | 2004-08-16 03:27:29 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2004-08-16 03:27:29 +0000 |
commit | 48729174301a8e17185c18c146f969c0fc2dd9f0 (patch) | |
tree | 9e58ede141be355c38f2c1cd9f7881b2e6134800 /lib/libpthread/arch/powerpc/include/pthread_md.h | |
parent | 62ead65343c2618ed24b963da542a95e4373aa7d (diff) | |
download | FreeBSD-src-48729174301a8e17185c18c146f969c0fc2dd9f0.zip FreeBSD-src-48729174301a8e17185c18c146f969c0fc2dd9f0.tar.gz |
1. Add macro DTV_OFFSET to calculate dtv offset in tcb.
2. Export symbols needed by debugger.
Diffstat (limited to 'lib/libpthread/arch/powerpc/include/pthread_md.h')
-rw-r--r-- | lib/libpthread/arch/powerpc/include/pthread_md.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libpthread/arch/powerpc/include/pthread_md.h b/lib/libpthread/arch/powerpc/include/pthread_md.h index 776d45b..5d00ab3 100644 --- a/lib/libpthread/arch/powerpc/include/pthread_md.h +++ b/lib/libpthread/arch/powerpc/include/pthread_md.h @@ -42,6 +42,7 @@ extern int _ppc32_setcontext(mcontext_t *, intptr_t, intptr_t *); extern int _ppc32_getcontext(mcontext_t *); #define KSE_STACKSIZE 16384 +#define DTV_OFFSET offsetof(struct tcb, tcb.tcb_tp.tp_dtv) #define THR_GETCONTEXT(ucp) _ppc32_getcontext(&(ucp)->uc_mcontext) #define THR_SETCONTEXT(ucp) _ppc32_setcontext(&(ucp)->uc_mcontext, 0, NULL) |