linux-mips
[Top] [All Lists]

Re: Build failure for R3000 DECstation

To: Ralf Baechle <ralf@oss.sgi.com>
Subject: Re: Build failure for R3000 DECstation
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Wed, 15 Nov 2000 12:18:57 +0100 (MET)
Cc: Harald Koerfgen <Harald.Koerfgen@home.ivm.de>, linux-mips@oss.sgi.com
In-reply-to: <20001115024358.A3182@bacchus.dhis.org>
Organization: Technical University of Gdansk
Sender: owner-linux-mips@oss.sgi.com
On Wed, 15 Nov 2000, Ralf Baechle wrote:

> Make that change k0 to a non-zero value.  So a R3000 UP spinlock can look
> like:
> 
>       move    k0, zero
>       li      t0, 1
> 0:    sw      t0, spin
>       bnez    k0, 0b
> 
>       [critical section]
> 
>       sw      zero, spin

 Great! -- I haven't thought of such a solution.  I'll prepare some code
and see whether there are no races.  It should work fine, indeed.

> (Who should write thousant times ``I shall not post with a phone in my hand'')

 ;-)

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


<Prev in Thread] Current Thread [Next in Thread>