This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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 at de dot ibm dot 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)
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |