> > Plus we already reserve a register for the current task - we're not all > > that squeezed, but can't we store the per thread data at a constant offset > > from the task address which we already store in a register? Are all > > threads separate tasks at kernel level? > > We already reserve a register for the current task in kernel space. > [...] > While TLS needs some kind of pointer in user space. > (Of course the kernel has to update the memory pointer at every task > switch).
That's what I meant. Can the TLS pointer be derived from the current task pointer in some simple way (so we don't need to reserve some other register)? Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]