Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: David Daney <ddaney@avtrex.com>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: "Kevin D. Kissell" <kevink@mips.com>,
	Ralf Baechle <ralf@linux-mips.org>,
	Guido Guenther <agx@sigxcpu.org>,
	linux-mips@linux-mips.org, debian-toolchain@lists.debian.org
Subject: Re: TLS register
Date: Tue, 01 Jun 2004 12:21:56 -0700	[thread overview]
Message-ID: <40BCD754.9000803@avtrex.com> (raw)
In-Reply-To: <Pine.LNX.4.55.0406011543020.29465@jurand.ds.pg.gda.pl>

Maciej W. Rozycki wrote:

>On Tue, 1 Jun 2004, Kevin D. Kissell wrote:
>
>  
>
>>>>Now that gcc 3.4 has incompatible ABI changes (on o32 mostly affecting
>>>>mipsel) I've been discussing with Thiemo if I'd be the right point to
>>>>take this ABI change as a possibility to additionally reserve a TLS
>>>>register. 
>>>>He suggested $24 (t8) another discussed possibility would be $27 (k1)
>>>>which is already abused by the PS/2 folks for ll/sc emulation.
>>>>Another possibility would be to reserve such a register only in the
>>>>n32/n64 ABIs and let o32 stay without __thread and TLS forever.
>>>>        
>>>>
>
> For Linux the n32/n64 ABIs can be considered being in the initial stage
>of deployment, so backwards compatibility is a non-issue.  Whatever is
>found to be the best solution may be accepted.  So the problem of defining
>a TLS pointer exists for the o32 ABI only and given the existence of
>MIPS32 ISA and its implementations ignoring the issue won't only affect
>ancient (but still alive) hardware.
>

There are MIPS32 ISA processors that are used in embedded devices that 
are far from "ancient" as some are only starting to enter the market, 
and are still in production.

For these types of devices it is not so important to maintain backwards 
compatibility with legacy tool chains and/or binary library code.  A new 
ABI very similar to o32 but with a TLS pointer in a register (perhaps 
"o32-tls") might be useful.
.
.
.

> The interesting factor is how much software really needs threading.  
>AFAIK, the majority does not -- I can count threaded software I know of 
>(but not necessarily use) using fingers of one hand.  That does not mean 
>there are no niches that make use of that approach extensively -- they 
>could see a benefit, but why to penalize the rest?
>
>  
>
Almost any non-trivial program written in java could benefit from faster 
TLS.  The java support in GCC-3.4 now allows us to write useful programs 
for MIPS in java.

David Daney.

      reply	other threads:[~2004-06-01 19:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-31 23:05 TLS register Guido Guenther
2004-06-01  3:17 ` Steven J. Hill
2004-06-01 12:15 ` Ralf Baechle
2004-06-01 12:44   ` Kevin D. Kissell
2004-06-01 12:44     ` Kevin D. Kissell
2004-06-01 14:28     ` Maciej W. Rozycki
2004-06-01 19:21       ` David Daney [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40BCD754.9000803@avtrex.com \
    --to=ddaney@avtrex.com \
    --cc=agx@sigxcpu.org \
    --cc=debian-toolchain@lists.debian.org \
    --cc=kevink@mips.com \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@ds2.pg.gda.pl \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox