[mips-tls] A couple of potential changes to the MIPS TLS ABI
Mark Mitchell
mark at codesourcery.com
Tue Feb 1 20:07:45 UTC 2005
Daniel Jacobowitz wrote:
> On Tue, Feb 01, 2005 at 02:10:50AM -0800, Michael Uhler wrote:
>
>>The one area that I'm concerned about is the use of rdhwr to return the
>>pointer. There are several reasons why I'm not sure this is the right thing
>>to do:
>
>
> I'm getting a lot of conflicting feedback about this.
From our point of view, we've already got a validated implementation
using rdhwr. We'd like to avoid having to rework our code and then
revalidate.
Realistically, if rdhwr isn't officially blessed, some vendors might
still use our implementation. Or, things might just languish. In other
words, I'm somewhat afraid that we've missed the technical window to
debate this particular technical point.
As Dan says, the new MIPS ABI can do better in this regard, as in
others. Furthermore, if the kernel adds a syscall that can be used by
the o32 ABI, then the tools can be updated to work with that too. I
think the only immutable aspect of this existing design is that if/once
our implementation escapes into the wild, then kernels forevermore may
have to support the rdhwr solution, even if most programs no longer use
it. I think that's a relatively small price to pay to get NPTL working
on MIPS.
--
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com
(916) 791-8304
More information about the mips-tls
mailing list