David S. Miller wrote:
Sparc32 lacks compare and exchange. I think PARISC lacks it
as well.
For these older SMP systems, at best you can assume there
is some kind of spinlock and perhaps a straight atomic
exchange instruction. You really can't assume the existance
of compare-and-swap.
Thanks David, I suspected as much.
PARISC emulates cmpxchg. I suspect sparc could do the same?
(provided all access goes through the atomic_xxx accessors)
Nick
--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com