[parisc-linux] Re: [parisc-linux-cvs] linux grundler
Sat, 8 Feb 2003 20:27:05 -0700
On Sat, Feb 08, 2003 at 07:35:18PM -0500, John David Anglin wrote:
> > +#define spin_unlock(x) \
> > + __asm__ __volatile__ ("stw,o %%sp,0(%0)" : : "r" (x) : "memory" )
> If you change the above to
> __asm__ __volatile__ ("stw,ma %%sp,0(%0)" : : "r" (x) : "memory")
> it should work on both PA11 and PA20. The ordered completer is only
> PA 2.
In case it's not obvious to others, "stw,o" is an alias
for "stw,ma" with a Zero index value. But PA11 assembler
will grok the stw,ma properly.
I'll look at getting this into the kernel this week if someone
else doesn't beat me to it. I'd like to test what I've got a bit
more now and get the binutils .deb availability issue resolved.