Re: cvs commit: src/sys/sys tls.h src/lib/libc/gen tls.c src/lib

看板DFBSD_commit作者時間21年前 (2005/03/29 02:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/14 (看更多)
On Mon, Mar 28, 2005 at 07:23:21PM +0200, Joerg Sonnenberger wrote: > On Mon, Mar 28, 2005 at 09:15:28AM -0800, Matthew Dillon wrote: > > :I'd like to get rid of the size argument too. This should be split into > > :machine/tls.h (with e.g. the struct tcb define) and sys/tls.h with the > > :general system call. > > > > This is viable, but I think it might be best to retool it so the thread > > library has full control over the size of the TCB rather then hardwire > > it into the OS headers. > > There is _no_ reason for the thread library to extend the TCB. > Anything which a thread library might want to store there can also be > stored in the pthread structure, which is completely managed by the > library. There are still differences between architectures in what > to place in the TCB, because the "self" pointer is only needed for > segment-style implementations, if the TCB register contains a normal > pointer (like e.g. on IA64 or any RISC architecture), it is not > needed. I should add that I mean the following tcb layout: struct tls_tcb { #ifdef INDIRECT_THREAD_REGISTER struct tls_tcb *tcb_base; #endif void *dtv_base; void *tcb_pthread; } Joerg
文章代碼(AID): #12I4QS00 (DFBSD_commit)
討論串 (同標題文章)
完整討論串 (本文為第 7 之 14 篇):
文章代碼(AID): #12I4QS00 (DFBSD_commit)