Fix some uses of ret in libpthread
commit214da24dedbd51e56ae73b96dac01b48d9831ed6
authorMark Seaborn <mrs@mythic-beasts.com>
Tue, 9 Jun 2009 20:46:50 +0000 (9 21:46 +0100)
committerMark Seaborn <mrs@mythic-beasts.com>
Tue, 9 Jun 2009 20:46:50 +0000 (9 21:46 +0100)
tree1529c394572adb028d10c962c95cfa15f9a6c39c
parent5e4db8d16837b2532eca14cb66002e4235fcf519
Fix some uses of ret in libpthread

This makes sem_wait() work, at least partially, when used by Python.

Done using:
perl -pi -e 's/^(\s*)ret(\s*)$/$1popl %ecx; nacljmp %ecx$2/' nptl/sysdeps/unix/sysv/linux/i386/i486/*.S
16 files changed:
nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S
nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S
nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S
nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S
nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S