diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-04-23 03:31:59 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-04-23 03:31:59 +0000 |
commit | 8d38949442f74e86e45e2a15f3027e9e3428b42b (patch) | |
tree | 9decab66488d26669226da094c12c49473a57b19 /lib/libthr/arch/i386/include/pthread_md.h | |
parent | a0a25ee25d1bd296e898cd72e97a736762e337fb (diff) | |
download | FreeBSD-src-8d38949442f74e86e45e2a15f3027e9e3428b42b.zip FreeBSD-src-8d38949442f74e86e45e2a15f3027e9e3428b42b.tar.gz |
Now libthr only uses GDT based tls on i386. using LDT can only increase
clock cycles and has 8191 threads limitation.
Diffstat (limited to 'lib/libthr/arch/i386/include/pthread_md.h')
-rw-r--r-- | lib/libthr/arch/i386/include/pthread_md.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libthr/arch/i386/include/pthread_md.h b/lib/libthr/arch/i386/include/pthread_md.h index ac3cc9c..46ab5b6 100644 --- a/lib/libthr/arch/i386/include/pthread_md.h +++ b/lib/libthr/arch/i386/include/pthread_md.h @@ -49,7 +49,6 @@ struct tcb { struct tcb *tcb_self; /* required by rtld */ void *tcb_dtv; /* required by rtld */ struct pthread *tcb_thread; - int tcb_ldt; }; /* @@ -88,14 +87,7 @@ static __inline void _tcb_set(struct tcb *tcb) { #ifndef COMPAT_32BIT - int val; - - if (_thr_using_setbase == 1) { - i386_set_gsbase(tcb); - } else { - val = (tcb->tcb_ldt << 3) | 7; - __asm __volatile("movl %0, %%gs" : : "r" (val)); - } + i386_set_gsbase(tcb); #else _amd64_set_gsbase(tcb); #endif |