On Fri, Sep 02, 2005 at 06:05:49PM +1000, Nick Piggin wrote: > 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)
If Sparc has atomic stores to aligned addresses (and I bet it does), then the PA-RISC style emulation should work just fine.
