linux-mips
[Top] [All Lists]

TLS register for NPTL

To: linux-mips@linux-mips.org
Subject: TLS register for NPTL
From: Carl van Schaik <carl@ok-labs.com>
Date: Mon, 20 Aug 2007 16:59:01 +1000
Organization: Open Kernel Labs Inc.
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)
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?

regards,
Carl van Schaik

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