[Top] [All Lists]

Re: TLS register for NPTL

To: Carl van Schaik <>
Subject: Re: TLS register for NPTL
From: Thiemo Seufer <>
Date: Mon, 20 Aug 2007 09:06:27 +0100
In-reply-to: <>
Original-recipient: rfc822;
References: <>
User-agent: Mutt/1.5.16 (2007-06-11)
Carl van Schaik wrote:
> Hi All,
> It seems the rdhwr emulation is used/proposed for accessing the thread
> word in NPTL.
> I've been reading some of the posts from 2005 about this choice of this
> and what I have missed is anyone talking about using the "k0" register
> for TLS. It seems logical that the kernel could always restore k0 on
> returning to user-land and having k1 only for the last part of returning
> to user is sufficient. Any reason why this was not looked at?

The TLB handlers need k0/k1 as well and have no good place to save/restore
a register.


<Prev in Thread] Current Thread [Next in Thread>