Subject: Re: Atomic ops API
To: NetBSD Kernel Technical Discussion List <tech-kern@NetBSD.org>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-kern
Date: 03/13/2007 16:18:36
On Tue, Mar 13, 2007 at 08:16:10AM -0700, Jason Thorpe wrote:
> Oh, and dunno... m68k called it "compare-and-set" long before Solaris
> called it "compare-and-swap"
I was pretty sure until you wrote that (but have my books at home)
that CAS is compare and swap.
Note that CAS2 needs a trap on 68060, and CAS needs a trap if unaligned.
OTOH, if we don't have SMP machines, it's easier, right?
-is