Date: Mon, 29 Mar 2004 22:16:17 +0100 From: Doug Rabson <dfr@nlsystems.com> To: Marcel Moolenaar <marcel@xcllnt.net> Cc: freebsd-threads@freebsd.org Subject: Re: Thread Local Storage Message-ID: <200403292216.17819.dfr@nlsystems.com> In-Reply-To: <20040329193940.GA52335@ns1.xcllnt.net> References: <200403292000.13794.dfr@nlsystems.com> <20040329193940.GA52335@ns1.xcllnt.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403292216.17819.dfr>