Messages in this thread | | | From | Andi Kleen <> | Subject | Re: [PATCH RFC 0/6] Implement per-processor data areas for i386. | Date | Wed, 30 Aug 2006 19:32:38 +0200 |
| |
On Wednesday 30 August 2006 19:13, Jeremy Fitzhardinge wrote: > Andi Kleen wrote: > > I tried that once on x86-64, but it wasn't possible because the linker > > is missing the right relocations. It has something on the first look similar > > for __thread data in user space, but it wasn't usable for the kernel. > > > The other difficulty is that you can't take the addresses of things in > the pda and pass them around, which happens a lot.
The user space __thread works around this by always storing the address at offset 0. Kernel does it similar, except it's not at offset 0.
> (Hm, it would be interesting to see if we could possibly use the code > generated by gcc for TLS variables...)
I tried once on 64bit and it wasn't possible for various reasons.
-Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |