[patch 2/2] powerpc: optimise smp_wmb

Segher Boessenkool segher at kernel.crashing.org
Thu May 22 06:51:51 EST 2008


> This is mostly useless then since lwsync is just a sync to a processor
> that doesn't know it (it's a sync with a reservd bit set) :-) Or it's
> just to make gas happy if you specify a processor type that doesn't 
> have
> lwsync ?

GAS doesn't care (I tried with -Wa,-m405).  Support for this insn
was added to binutils in august 2001; do we still support older
binutils than that?  If so, we should just do the ".long" trick in
a lwsync() inline function, like we do for similar cases.


Segher




More information about the Linuxppc-dev mailing list