l4-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: %gs:0 thread pseudoregister in oskit-mach


From: Farid Hajji
Subject: Re: %gs:0 thread pseudoregister in oskit-mach
Date: Wed, 24 Apr 2002 10:08:44 +0200 (CEST)

Roland McGrath wrote:

> > I know this is irrelevant for oskit-mach proper, but it may be
> > interesting to know if you're introducing any dependency in,
> > say, glibc/pthreads:
> > 
> >   In the L4 V4 spec, Appendix A (x86 Interface), register %gs
> >   is used to point to the UTCB of the current thread (read-only).
> 
> You may need to change that.  The %gs:0 word will become part of the
> ELF/x86 ABI for TLS support.

Huston, we're gonna have a BIG problem!

The UTCB is a central information page for L4 userspace threads
and it's pretty difficult to find another x86 register that can
be used to point to it.

Espen, I know the spec can't be changed at this point. Do you see
any workaround for this problem?

Regards,

-Farid.

-- 
Farid Hajji -- Unix Systems and Network Admin | Phone: +49-2131-67-555
Broicherdorfstr. 83, D-41564 Kaarst, Germany  | address@hidden
- - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - -
One OS To Rule Them All And In The Darkness Bind Them... --Bill Gates.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]