From a002d437eaf0d15470bc75c142a22ff3d643b030 Mon Sep 17 00:00:00 2001 From: David Xu Date: Mon, 16 Aug 2004 03:27:29 +0000 Subject: 1. Add macro DTV_OFFSET to calculate dtv offset in tcb. 2. Export symbols needed by debugger. --- lib/libpthread/arch/i386/include/pthread_md.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libpthread/arch/i386') diff --git a/lib/libpthread/arch/i386/include/pthread_md.h b/lib/libpthread/arch/i386/include/pthread_md.h index 2d4b0e00245b..d208d2ecb686 100644 --- a/lib/libpthread/arch/i386/include/pthread_md.h +++ b/lib/libpthread/arch/i386/include/pthread_md.h @@ -31,6 +31,7 @@ #ifndef _PTHREAD_MD_H_ #define _PTHREAD_MD_H_ +#include #include #include @@ -38,6 +39,7 @@ extern int _thr_setcontext(mcontext_t *, intptr_t, intptr_t *); extern int _thr_getcontext(mcontext_t *); #define KSE_STACKSIZE 16384 +#define DTV_OFFSET offsetof(struct tcb, tcb_dtv) #define THR_GETCONTEXT(ucp) _thr_getcontext(&(ucp)->uc_mcontext) #define THR_SETCONTEXT(ucp) _thr_setcontext(&(ucp)->uc_mcontext, 0, NULL) -- cgit v1.3