Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jun 2004 10:14:21 +0100
From:      Doug Rabson <dfr@nlsystems.com>
To:        freebsd-current@freebsd.org
Subject:   Re: HEADS UP! KSE needs more attention
Message-ID:  <200406071014.21707.dfr@nlsystems.com>
In-Reply-To: <20040606204817.GB96607@dhcp50.pn.xcllnt.net>
References:  <Pine.GSO.4.10.10406061551210.16558-100000@pcnet5.pcnet.com> <40C37E1C.4000402@freebsd.org> <20040606204817.GB96607@dhcp50.pn.xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 06 June 2004 21:48, Marcel Moolenaar wrote:
> On Sun, Jun 06, 2004 at 02:27:08PM -0600, Scott Long wrote:
> > >Doug Rabson also has basic TLS support working in perforce.
> >
> > What platforms?  My understanding was that new binutils and gcc was
> > needed for sparc64 at a minimum.
>
> Yes. It's i386 only and not even close to being complete. In fact,
> there has been discussions that the thread pointer on i386 needs to
> change. Whether that's the case or not, it's likely that TLS will
> complicate matters way too much to for it to ever work in 5.3.

Actually its a bit better than that. It works for most use cases right 
now on i386 but would get confused on dlclose. I'll fix that before I 
move it into current.

As far as the thread pointer issue goes, it turns out that our current 
compiler will always evaluate %gs:0 first which is fine for libpthread. 
I looked at gcc-3.4 sources and it can also be configured to always 
evaluate %gs:0 (this is the default for non-linux platforms).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406071014.21707.dfr>