From: "H. J. Lu" <hjl@lucon.org>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: Wayne Gowcher <wgowcher@yahoo.com>, linux-mips@linux-mips.org
Subject: Re: Enabling pthreads to use ll/sc instead of emulate_load_store_insn
Date: Thu, 7 Nov 2002 21:17:59 -0800 [thread overview]
Message-ID: <20021107211759.A6082@lucon.org> (raw)
In-Reply-To: <20021108061233.A3314@bacchus.dhis.org>; from ralf@linux-mips.org on Fri, Nov 08, 2002 at 06:12:33AM +0100
On Fri, Nov 08, 2002 at 06:12:33AM +0100, Ralf Baechle wrote:
> On Thu, Nov 07, 2002 at 07:52:34PM -0800, Wayne Gowcher wrote:
>
> > The processor is an r4k and the application is being
> > compiled with mips2 switch, which I thought would
> > allow it to generate the ll/sc instructions natively
> > and not have to generate system calls to emulate it.
> > I am guessing this is because the pthread library I
> > have is from the sgi ftp site and it was compiled for
> > mips1 ??
> >
> > If someone has any insight into how to get libpthread
> > to use ll/sc instructions instead of the mips system
> > call I would really appreciate hearing from them.
>
> Rebuild it with -mips2. The inline code in glibc is coded such that it'll
> automatically use ll/sc then.
I believe I enabled ll/sc unconditinally in glibc. Make sure you use
a recent glibc. The one from my RedHat 7.3 port should be ok.
H.J.
next prev parent reply other threads:[~2002-11-08 5:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-08 3:52 Enabling pthreads to use ll/sc instead of emulate_load_store_insn Wayne Gowcher
2002-11-08 5:12 ` Ralf Baechle
2002-11-08 5:17 ` H. J. Lu [this message]
2002-11-08 5:27 ` Ralf Baechle
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=20021107211759.A6082@lucon.org \
--to=hjl@lucon.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=wgowcher@yahoo.com \
/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