[parisc-linux] Progress - Update
Alan Cox
alan@lxorguk.ukuu.org.uk
Tue, 30 Nov 1999 18:21:20 +0000 (GMT)
> The macro xchg is used in quite a few places in what is nominally
> machine independent code. Should we add __attribute__ ((aligned (16))
> to the definitions of all variables which exchange with 0? Or, should
> we look for another solution?
xchg() is defined to work for a range of types and sizes. It is up to the
arch code to implement it. That may mean you need to use a spinlock to implementsome cases.
Alan