Hi,
the attached patches provide test-and-set assembler code for s390x
(64bit) and ppc64.
The s390x patch changes the existing implementation to a more
efficient version (according to the IBM guy who wrote it), that works
on both s390 architectures. It also changes the -fpic compiler flag to
-fPIC which is needed for some Linux platforms, and AFAIK doesn't hurt
on the others.
cu
Reinhard