| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | Re: Enabling pthreads to use ll/sc instead of emulate_load_store_insn |
| From: | "H. J. Lu" <hjl@lucon.org> |
| Date: | Thu, 7 Nov 2002 21:17:59 -0800 |
| Cc: | Wayne Gowcher <wgowcher@yahoo.com>, linux-mips@linux-mips.org |
| In-reply-to: | <20021108061233.A3314@bacchus.dhis.org>; from ralf@linux-mips.org on Fri, Nov 08, 2002 at 06:12:33AM +0100 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20021108035234.34238.qmail@web11903.mail.yahoo.com> <20021108061233.A3314@bacchus.dhis.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.2.5.1i |
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. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Enabling pthreads to use ll/sc instead of emulate_load_store_insn, Ralf Baechle |
|---|---|
| Next by Date: | Re: Enabling pthreads to use ll/sc instead of emulate_load_store_insn, Ralf Baechle |
| Previous by Thread: | Re: Enabling pthreads to use ll/sc instead of emulate_load_store_insn, Ralf Baechle |
| Next by Thread: | Re: Enabling pthreads to use ll/sc instead of emulate_load_store_insn, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |