From db8830bc2df63d901372f95b64e88e5acca62a62 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 29 Jun 2005 23:15:36 +0000 Subject: Clean out the leftovers from the i386_set_gsbase() TLS conversion. Like on libthr, there is an i386_set_gsbase() stub implementation here to avoid libc.so.5 issues. This should likely be a weak symbol and I expect this will be fixed soon. Approved by: re --- lib/libpthread/arch/i386/include/pthread_md.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'lib/libpthread/arch/i386/include') diff --git a/lib/libpthread/arch/i386/include/pthread_md.h b/lib/libpthread/arch/i386/include/pthread_md.h index da200d3..52afd6a 100644 --- a/lib/libpthread/arch/i386/include/pthread_md.h +++ b/lib/libpthread/arch/i386/include/pthread_md.h @@ -40,8 +40,6 @@ extern int _thr_setcontext(mcontext_t *, intptr_t, intptr_t *); extern int _thr_getcontext(mcontext_t *); -extern int _thr_using_setbase; - #define KSE_STACKSIZE 16384 #define DTV_OFFSET offsetof(struct tcb, tcb_dtv) @@ -60,7 +58,6 @@ struct pthread; struct kcb { struct tcb *kcb_curtcb; struct kcb *kcb_self; /* self reference */ - int kcb_ldt; struct kse *kcb_kse; struct kse_mailbox kcb_kmbx; }; @@ -154,15 +151,7 @@ void _kcb_dtor(struct kcb *); static __inline void _kcb_set(struct kcb *kcb) { - int val; - - if (_thr_using_setbase == 1) { - i386_set_gsbase(kcb); - } else { - val = (kcb->kcb_ldt << 3) | 7; - __asm __volatile("movl %0, %%gs" : : "r" (val)); - } - + i386_set_gsbase(kcb); } /* Get the current kcb. */ -- cgit v1.1