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.