Ralf Baechle wrote:
>
> On Mon, May 28, 2001 at 05:34:26PM +0200, Maciej W. Rozycki wrote:
>
> > > Alright, I rolled my sleeve and digged into IRIX 6.5, and guess what?
> > > sysmips() does NOT have MIPS_ATOMIC_SET (2001) on IRIX! See the header
> > > below.
> >
> > I remember Ralf writing of this being a compatibility call with RISC/OS
> > (is it the original OS of MIPS, Inc.?), IIRC. Ralf: am I right?
>
> Yes; this function is also implemented for IRIX 5 which we have some
> binary compatibility code for.
>
Is anybody at all still running IRIX binary on Linux? My impression the
compatibility is broken a while back.
> > > So apparently MIPS_ATOMIC_SET was invented for Linux only, probably just
> > > to
> > > implement _test_and_set(). (It would be interesting to see how IRIX
> > > implement _test_and_set() on MIPS I machines. However, the machine I
> > > have access uses ll/sc instructions).
>
> I don't recall seeing a _test_and_set() in the IRIX API/ABI.
>
It is part of SYSV MIPS supplement spec. IRIX 6.5 has it.
Jun
|