Re: MIPS test-and-set - Mailing list pgsql-hackers

From Ian Lance Taylor
Subject Re: MIPS test-and-set
Date
Msg-id sig0fzzt58.fsf@daffy.airs.com
Whole thread Raw
In response to Re: MIPS test-and-set  (ncm@zembu.com (Nathan Myers))
List pgsql-hackers
ncm@zembu.com (Nathan Myers) writes:

> Since the actual instruction sequence is probably lifted from the 
> MIPS manual, it's probably much freer than GPL.  For the paranoid,
> the actual instructions, extracted, are just
> 
>    1:
>      ll   %0,%3
>      bnez %0,2f
>       li  %1,1
>      sc   %1,%2
>      beqz %1,1b
>    2:

But note that the ll instruction is MIPS ISA II, which means that it
is not supported by the R3000, which means that it will not work on
most DECstations.

I don't think there is any way to do a reliable test-and-set sequence
in user mode on an R3000.

Ian


pgsql-hackers by date:

Previous
From: Xu Yifeng
Date:
Subject: compress package in bzip2
Next
From: Tatsuo Ishii
Date:
Subject: Re: Call for platforms