So - even with "full" Linux, the __thread variables have different addresses per thread ?

Yes.
I did a test on the PC and (as expected) you are right. The same __thread variable has different addresses when different threads are running.

Do you know how this is implemented in the x86 architecture ? I suppose The CPU does not have enough registers to dedicate one for that purpose, unless something exotic like the Extra Segment is used.

-Michael
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to