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