Gavin Lambert wrote:
> It should be easy enough to get it to work with a dedicated
> register, too.  Just have the kernel set the register on context
> switch, where it always points to a "thread-specific-data" table in
> memory at different locations for different threads.  (This would
> also work for userspace threads.)  Of course, the compiler would
> have to be convinced to leave that register alone, similar to how it
> already behaves with the stack pointer and frame pointer registers.

Registers (that GCC would have to leave alone) are automatically
updated on context switch.  That's what a context switch does :-)

No kernel changes are needed, if the register is an ordinary one which
you are telling GCC to leave alone.

-- Jamie
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to