Looking at the code for setcontext() http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/threads/sigaction.c it is not clear wheter thread-specific (TSP) data is also restored. In other words, if thread A creates the context which is restored in thread B, will B access the TSP data of A or its own?
How does TSP data work on AMD64? What are FS and GS segments used for and what do they point to? This message posted from opensolaris.org _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code