linux-mips
[Top] [All Lists]

Re: Enabling pthreads to use ll/sc instead of emulate_load_store_insn

To: Wayne Gowcher <wgowcher@yahoo.com>
Subject: Re: Enabling pthreads to use ll/sc instead of emulate_load_store_insn
From: Ralf Baechle <ralf@linux-mips.org>
Date: Fri, 8 Nov 2002 06:12:33 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <20021108035234.34238.qmail@web11903.mail.yahoo.com>; from wgowcher@yahoo.com on Thu, Nov 07, 2002 at 07:52:34PM -0800
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20021108035234.34238.qmail@web11903.mail.yahoo.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.2.5.1i
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.

  Ralf

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