Re: Better CLONE_SETTLS support for Hammer

Ulrich Drepper (
Wed, 05 Mar 2003 19:52:20 -0800

Hash: SHA1

Benjamin LaHaise wrote:

> Instead,
> making x86-64 TLS support based off of the stack pointer, or even using
> a fixed per-cpu segment register such that gs:0 holds the pointer to the
> thread "current" would be better.

Gee, here is somebody who knows about thread APIs and ABIs. You're
really embarrassing yourself.

> Make the users of threads suffer, not
> every single application and syscall in the system.

Whether you like it or not, people are using threads. TLS requires a
thread register even in single-threaded applications. The mechanism I
proposed would use segments if <4GB addresses can be allocated,
otherwise fall back to prctl(ARCH_SET_FS). This is about as good as you
can get it.

Remove anything and hammer is the only architecture without good thread
support which undoubtedly makes you happy but almost nobody else.

- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at `---------------------------
Version: GnuPG v1.2.1 (GNU/Linux)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at