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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-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

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Davies 2001-03-27 05:32:57 Re: records zapped to null
Previous Message Tom Lane 2001-03-27 05:09:46 Re: records zapped to null

Browse pgsql-hackers by date

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