No, it's not done like that. Linux does not provide thread-specific
virtual memory mappings, except for special cases like the
vsyscall/vdso page.
So - even with "full" Linux, the __thread variables have different
addresses per thread ? This does not make sense to me as there is an MMU
that would make accessing these variable on a single address possible
and thus the compiler would just need to put the __thread variables in a
dedicated section and otherwise would handle them exactly like normal
variables.
I'm going to do a simple test on my PC and report the results ASAP.
-Michael
_______________________________________________
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