On Wed, Jul 23, 2008 at 12:33:44AM -0700, Zeljko Vrba wrote:
> Oh, yes, and the functioning of the setcontext_enforcement function..
> If in effect on AMD64, it nullifies the FS base.. What is "curthread"
> pointer and does it have anything to do with thread-specific data?

The underlying curthread in userland points to the ulwp_t structure, which
is the libc implementation structure for the per-thread state in userland.
If you setcontext() you can change your registers of course, but you
do not change your thread ID or your ulwp_t curthread pointer, and
therefore your TSD and TLS never change to that of another thread.

-Mike

-- 
Mike Shapiro, Sun Microsystems Fishworks. blogs.sun.com/mws/
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to