From owner-freebsd-current@FreeBSD.ORG Mon Dec 22 12:05:59 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AC2716A4CE for ; Mon, 22 Dec 2003 12:05:59 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 718B243D31 for ; Mon, 22 Dec 2003 12:05:58 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <2003122220055701300eqblre>; Mon, 22 Dec 2003 20:05:58 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA28936; Mon, 22 Dec 2003 12:05:56 -0800 (PST) Date: Mon, 22 Dec 2003 12:05:54 -0800 (PST) From: Julian Elischer To: Daniel Eischen In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: "Vladimir B. Grebenschikov" cc: "current@freebsd.org" Subject: Re: KSE and qt-mt X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2003 20:05:59 -0000 On Mon, 22 Dec 2003, Daniel Eischen wrote: > > I also asked them to use %fs; I'm not sure if they will... > They are worried about WINE as they are sometimes run together. It is more likely that we could ask them to use a single indirection and follow the KSE pointer to the Thread block. Interestigly teh TLS definition for x86 doesn;t sapecify that the tdv be at offset 0 in the tcb. There is special mention of having it at another offset, as long as that offset is known in advance. We could of course also ask them to use offset 1 (longs) and leave it free for them they could use that to point to whatever they want and it would still allow us to experiment with implementing TLS. I need to look up their address again. it's time we started this discussion again, now that we are closer to implementing TLS. > Our current (libkse i386) %gs usage is: > > /* > * %gs points to a struct kcb. > */ > struct kcb { > struct tcb *kcb_curtcb; > struct kcb *kcb_self; /* self reference */ > int kcb_ldt; > struct kse *kcb_kse; > struct kse_mailbox kcb_kmbx; > }; > > struct tcb { > struct tdv *tcb_tdv; > struct pthread *tcb_thread; > void *tcb_addr; /* allocated tcb address */ > void *tcb_spare; /* align tcb_tmbx to 16 bytes */ > struct kse_thr_mailbox tcb_tmbx; > }; > > The dynamic thread vector (tcb_tdv) is supposed to point to > the dynamic TLS but we don't currently allocate it. correct. > > -- > Dan Eischen > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >