Date: Wed, 25 Feb 2004 12:11:54 -0800 From: Marcel Moolenaar <marcel@xcllnt.net> To: "David O'Brien" <obrien@FreeBSD.org>, Alexander Kabaev <ak03@gte.com>, Julian Elischer <julian@elischer.org>, FreeBSD current users <current@FreeBSD.org> Subject: Re: TLS, Thread Local Storage.. Message-ID: <20040225201154.GD58866@ns1.xcllnt.net> In-Reply-To: <20040225182038.GD7567@dragon.nuxi.com> References: <Pine.BSF.4.21.0402241557160.67378-100000@InterJet.elischer.org> <Pine.BSF.4.21.0402242349440.85856-100000@InterJet.elischer.org> <20040225174522.GC58071@ns1.xcllnt.net> <20040225130455.672f28f6@kanpc.gte.com> <20040225180922.GB58265@ns1.xcllnt.net> <20040225182038.GD7567@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 25, 2004 at 10:20:38AM -0800, David O'Brien wrote: > On Wed, Feb 25, 2004 at 10:09:22AM -0800, Marcel Moolenaar wrote: > > Ok. I assume this applies to i386 and amd64 only and that alpha and > > sparc64 still lack compiler support for it or are alpha and sparc64 > > fixed too? > > http://people.freebsd.org/~marcel/tls.html says nothing special is needed > for Alpha. Can you clarify? Bad wording. The compiler does not generate any thread-local access sequences when it should. The compiler seems to ignore the __thread keyword and pretend the variable is global. That's pretty much the same kind of support as on sparc64, except that on sparc64 the compiler emits an error for __thread. So, on alpha the compiler needs to be enhanced to emit thread-local access sequences. I'll make the page more clear. -- 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?20040225201154.GD58866>