diff options
author | Andreas Jaeger <aj@suse.de> | 2002-01-28 10:49:11 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2002-01-28 10:49:11 +0000 |
commit | dde762a2b68f132452eefa75c0e6900e173d5412 (patch) | |
tree | 33b17289cbaae9e767f180c2eee55cb1424c1185 /linuxthreads | |
parent | 2b94dab63c3977cb7cc2d839d8a797789e0cc632 (diff) | |
download | glibc-dde762a2b68f132452eefa75c0e6900e173d5412.zip glibc-dde762a2b68f132452eefa75c0e6900e173d5412.tar.gz glibc-dde762a2b68f132452eefa75c0e6900e173d5412.tar.bz2 |
(__pthread_spin_init): Clear *LOCK to 0.
2002-01-28 Andreas Jaeger <aj@suse.de>
* sysdeps/mips/pspinlock.c (__pthread_spin_init): Clear *LOCK to
0. Patch by Machida Hiroyuki <machida@sm.sony.co.jp>.
* sysdeps/s390/s390-32/pt-machine.h (MEMORY_BARRIER): Define.
(CURRENT_STACK_FRAME): Remove duplicate definition.
* sysdeps/s390/s390-64/pt-machine.h: Likewise.
Diffstat (limited to 'linuxthreads')
-rw-r--r-- | linuxthreads/ChangeLog | 11 | ||||
-rw-r--r-- | linuxthreads/sysdeps/mips/pspinlock.c | 4 |
2 files changed, 10 insertions, 5 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index a8a98e8..43e192f 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,8 +1,13 @@ +2002-01-28 Andreas Jaeger <aj@suse.de> + + * sysdeps/mips/pspinlock.c (__pthread_spin_init): Clear *LOCK to + 0. Patch by Machida Hiroyuki <machida@sm.sony.co.jp>. + 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com> - * sysdeps/s390/s390-32/pt-machine.h (MEMORY_BARRIER): Define. - (CURRENT_STACK_FRAME): Remove duplicate definition. - * sysdeps/s390/s390-64/pt-machine.h: Likewise. + * sysdeps/s390/s390-32/pt-machine.h (MEMORY_BARRIER): Define. + (CURRENT_STACK_FRAME): Remove duplicate definition. + * sysdeps/s390/s390-64/pt-machine.h: Likewise. 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com> diff --git a/linuxthreads/sysdeps/mips/pspinlock.c b/linuxthreads/sysdeps/mips/pspinlock.c index ab73d1d..8c832ae 100644 --- a/linuxthreads/sysdeps/mips/pspinlock.c +++ b/linuxthreads/sysdeps/mips/pspinlock.c @@ -1,5 +1,5 @@ /* POSIX spinlock implementation. MIPS version. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -92,7 +92,7 @@ __pthread_spin_init (pthread_spinlock_t *lock, int pshared) /* We can ignore the `pshared' parameter. Since we are busy-waiting all processes which can access the memory location `lock' points to can use the spinlock. */ - *lock = 1; + *lock = 0; return 0; } weak_alias (__pthread_spin_init, pthread_spin_init) |