Skip site navigation (1) Skip section navigation (2)

Re: MIPS test-and-set

From: Ian Lance Taylor <ian(at)airs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: MIPS test-and-set
Date: 2001-03-27 05:18:43
Message-ID: sig0fzzt58.fsf@daffy.airs.com (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackers
ncm(at)zembu(dot)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

In response to

pgsql-hackers by date

Next:From: Mike Cannon-BrookesDate: 2001-03-27 08:31:24
Subject: 7.1 RC1 RPM
Previous:From: Xu YifengDate: 2001-03-27 04:52:41
Subject: compress package in bzip2

pgsql-general by date

Next:From: Stephen DaviesDate: 2001-03-27 05:32:57
Subject: Re: records zapped to null
Previous:From: Tom LaneDate: 2001-03-27 05:09:46
Subject: Re: records zapped to null

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group