diff options
Diffstat (limited to 'nptl/sysdeps/s390/pthread_spin_lock.c')
-rw-r--r-- | nptl/sysdeps/s390/pthread_spin_lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/sysdeps/s390/pthread_spin_lock.c b/nptl/sysdeps/s390/pthread_spin_lock.c index 7d0067b0e9..f0fddf4ae8 100644 --- a/nptl/sysdeps/s390/pthread_spin_lock.c +++ b/nptl/sysdeps/s390/pthread_spin_lock.c @@ -23,12 +23,12 @@ int pthread_spin_lock (lock) pthread_spinlock_t *lock; { - unsigned long int oldval; + int oldval; __asm __volatile ("0: lhi %0,0\n" " cs %0,%2,%1\n" " jl 0b" - : "=d" (oldval), "=Q" (*lock) + : "=&d" (oldval), "=Q" (*lock) : "d" (1), "m" (*lock) : "cc" ); return 0; } |