Subject: Re: Thread implementation with TLS support?
To: Anselm R. Garbe <garbeam@gmail.com>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 03/10/2005 19:57:28
On Mar 10, 2005, at 4:45 PM, Anselm R. Garbe wrote:

> a) I want to get plan9ports [1] running on NetBSD 2.0.1. But for this
> purpose I need TLS (Thread Local Storage) support in NetBSD-2. I know
> that FreeBSD-5 has those, also Darwin, but I ask if NetBSD-2 has also
> TLS support in its thread implementation?

NetBSD does not currently support the TLS relocations provided by the 
GNU toolchain.

> b) If a) is the case, does the NetBSD linker support the gcc feature
> (since gcc 3.3) of a __thread modifier to the declaration of global
> and static variables? This extra modifier means that the variable's
> value is thread-local; one thread changing its value will not affect
> the value of the variable in any other thread.
>
> [1] http://swtch.com/plan9port/
>
> Thanks in advance,
> -- 
>   Anselm R. Garbe  ><><  www.ebrag.de  ><><  GPG key: 0D73F361
>
-- thorpej