Messages in this thread | | | Date | Wed, 5 Mar 2003 21:08:56 -0500 | From | Benjamin LaHaise <> | Subject | Re: Better CLONE_SETTLS support for Hammer |
| |
On Wed, Mar 05, 2003 at 03:04:07PM -0800, Ulrich Drepper wrote: > I wouldn't want to either in your position. You caused this whole mess > and now you're not willing to fix it.
I disagree. We don't need to use a segment register to get the thread library equivalent of "current". Changing the segment registers on a per process basis is a waste of time in the context switch. 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. Make the users of threads suffer, not every single application and syscall in the system.
-ben -- Junk email? <a href="mailto:aart@kvack.org">aart@kvack.org</a> - 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/
| |