Re: Thread implementations...

Ulrich Drepper (drepper@cygnus.com)
23 Jun 1998 16:20:03 -0700


MOLNAR Ingo <mingo@valerie.inf.elte.hu> writes:

> also, wondering wether LinuxThreads could just use the same trick the
> kernel uses to access the 'current' thread, by doing %%esp & ~-8192 to
> access to 'start' of the kernel stack, there one could store the thread
> structure? [hm, not sure wether this works for LinuxThreads, in the kernel
> we can guarantee that the kernel stack is 8K aligned]

Something like this is done currently on some of the platforms but
this has to be changed in the presence of user-defined stacks.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu