[parisc-linux] Re: [parisc-linux-cvs] linux grundler

John David Anglin dave@hiauly1.hia.nrc.ca
Sat, 8 Feb 2003 23:06:16 -0500 (EST)


> > 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.
> 
> Excellent idea.

The reason I am so up on this is that in testing gcc 3.4 on hppa1.1 this
weekend I found a problem with the locking code in atomicity.h.  This
was the 16-byte alignment issue.  In reviewing the assembly code being
generated, I revisited how the lock reset was done and came up with the
above.

This is also relevant to locking in glibc.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)