linux-mips
[Top] [All Lists]

Re: Once again: test_and_set for CPUs w/o LL/SC

To: "Gleb O. Raiko" <raiko@niisi.msk.ru>
Subject: Re: Once again: test_and_set for CPUs w/o LL/SC
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Thu, 17 Oct 2002 14:02:35 +0200 (MET DST)
Cc: Johannes Stezenbach <js@convergence.de>, "Kevin D. Kissell" <kevink@mips.com>, linux-mips@linux-mips.org
In-reply-to: <3DAE872E.D5EF0E4D@niisi.msk.ru>
Organization: Technical University of Gdansk
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
On Thu, 17 Oct 2002, Gleb O. Raiko wrote:

> Implement new sysmips then.

 I'm not sure if that's a good idea.  Glibc alone uses test_and_set(),
exchange_and_add(), atomic_add() and compare_and_swap().  Do you want a
separate syscall for each of these functions?  I think the ll/sc emulation
may be the best solution after all.  At least it's most flexible and not
much slower if at all.

-- 
+  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>