This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Thread Local Storage & i386-gnu (Was: Re: [PATCH] Add_dl_init_first to elf/Versions)


On Sun, 2002-04-07 at 15:34, Jeroen Dekkers wrote:

> Did you already made up your mind what the way to go is? If I remember
> correctly you suggested in some post to libc-hacker a few months ago
> to implement it using an constant segment register pointing to a word
> which is changed at thread switch and that word is the pointer to the
> thread specific data.

I'm not sure what you are referring to but the way the %gs register
handling will be implemented on Linux/x86 is to have the kernel allocate
a GDT entry and initialize the %gs register for it.  Using the auxiliary
vector size and address of the memory region will be communicated to the
program.  There is no memory allocated, though.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]