[PATCH] s390* pthread_spin_unlock.
Martin Schwidefsky
schwidefsky@de.ibm.com
Fri Apr 11 15:46:00 GMT 2003
Hi,
this is one of those "how could this ever work" bugs. The pthread_spin_lock
primitive in linuxthread for s390* is broken. The following patch fixes it.
blue skies,
Martin.
2003-04-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
* sysdeps/s390/pspinlock.c (__pthread_spin_unlock): Fix asm contraints.
diff -urN libc/linuxthreads/sysdeps/s390/pspinlock.c libc-s390/linuxthreads/sysdeps/s390/pspinlock.c
--- libc/linuxthreads/sysdeps/s390/pspinlock.c Fri Apr 11 17:34:17 2003
+++ libc-s390/linuxthreads/sysdeps/s390/pspinlock.c Fri Apr 11 17:33:22 2003
@@ -64,7 +64,7 @@
{
asm volatile(" xc 0(4,%0),0(%0)\n"
" bcr 15,0"
- : "=a" (lock) );
+ : : "a" (lock) : "memory" );
return 0;
}
weak_alias (__pthread_spin_unlock, pthread_spin_unlock)
More information about the Libc-hacker
mailing list