From owner-freebsd-threads@FreeBSD.ORG Mon Mar 29 13:19:54 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D35916A4CE for ; Mon, 29 Mar 2004 13:19:54 -0800 (PST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1AAD43D1D for ; Mon, 29 Mar 2004 13:19:53 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (sccrmhc13) with ESMTP id <2004032921195101600i2inqe>; Mon, 29 Mar 2004 21:19:52 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA29962; Mon, 29 Mar 2004 13:28:44 -0800 (PST) Date: Mon, 29 Mar 2004 13:28:43 -0800 (PST) From: Julian Elischer To: Doug Rabson In-Reply-To: <200403292216.17819.dfr@nlsystems.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: Thread Local Storage X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2004 21:19:54 -0000 On Mon, 29 Mar 2004, Doug Rabson wrote: > On Monday 29 March 2004 20:39, Marcel Moolenaar wrote: > > On Mon, Mar 29, 2004 at 08:00:13PM +0100, Doug Rabson wrote: > > > I've also been looking at libpthread and I can see some potential > > > problems with it. Currently libpthread on i386 uses %gs to point at > > > a struct kcb which seems to be a per-kse structure. This structure > > > contains a pointer to a per-thread struct tcb and this pointer is > > > managed by the userland context switch code. Other arches are > > > similar, e.g. ia64 uses $tp to point at struct kcb. > > > > On ia64, TP points to struct ia64_tp, which is the TLS. > > Yes, I saw that. I had the mistaken impression that this was contained > in the kcb but now I look at it again, it all seems fine. My real > problems were with the i386 though. We had this doc in fromnt of us when we layed out the structures so they should be correct (at least for the "solaris variant". > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" >