[parisc-linux] xchg/cmpxchg defined in wrong place?

Grant Grundler grundler@cup.hp.com
Fri, 29 Dec 2000 22:41:41 -0800


Grant Grundler wrote:
...
> Currently, parisc __xchg lives in arch/parisc/kernel/setup.c.

Sorry. I got this fact wrong: __xchg lives in arch/parisc/lib/bitops.c

__xchg_called_with_bad_pointer *is* defined in arch/parisc/kernel/setup.c.
My understanding is this fuction in fact should NOT be defined.
It's a tool to catch problems for architectures which can inline __xchg.

Neither item is material to my arguments for defining them in atomic.h.

grant

Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253