Add missing register initialization in x86-64 pthread_cond_timedwait

This commit is contained in:
Ulrich Drepper 2011-10-29 15:50:01 -04:00
parent cb95113e30
commit c2b18f7a0e
3 changed files with 12 additions and 4 deletions

2
NEWS
View File

@ -12,7 +12,7 @@ Version 2.15
6779, 6783, 9696, 10709, 11589, 12403, 12847, 12868, 12852, 12874, 12885, 6779, 6783, 9696, 10709, 11589, 12403, 12847, 12868, 12852, 12874, 12885,
12892, 12907, 12922, 12935, 13007, 13021, 13067, 13068, 13090, 13092, 12892, 12907, 12922, 12935, 13007, 13021, 13067, 13068, 13090, 13092,
13114, 13118, 13123, 13134, 13138, 13150, 13179, 13192, 13268, 13291, 13114, 13118, 13123, 13134, 13138, 13150, 13179, 13192, 13268, 13291,
13335, 13337, 13344 13335, 13337, 13344, 13358
* New program pldd to list loaded object of a process * New program pldd to list loaded object of a process
Implemented by Ulrich Drepper. Implemented by Ulrich Drepper.

View File

@ -1,3 +1,11 @@
2011-10-29 Ulrich Drepper <drepper@gmail.com>
[BZ #13358]
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
(__pthread_cond_timedwait): Initialize %r15 correctly also for code
path for kernels with FUTEX_CLOCK_REALTIME.
Debugged by H.J. Lu <hjl.tools@gmail.com>.
2011-10-27 Andreas Schwab <schwab@redhat.com> 2011-10-27 Andreas Schwab <schwab@redhat.com>
[BZ #13344] [BZ #13344]

View File

@ -101,6 +101,8 @@ __pthread_cond_timedwait:
movq %rsi, dep_mutex(%rdi) movq %rsi, dep_mutex(%rdi)
22: 22:
xorl %r15d, %r15d
#ifndef __ASSUME_FUTEX_CLOCK_REALTIME #ifndef __ASSUME_FUTEX_CLOCK_REALTIME
# ifdef PIC # ifdef PIC
cmpl $0, __have_futex_clock_realtime(%rip) cmpl $0, __have_futex_clock_realtime(%rip)
@ -402,8 +404,6 @@ __pthread_cond_timedwait:
#ifndef __ASSUME_FUTEX_CLOCK_REALTIME #ifndef __ASSUME_FUTEX_CLOCK_REALTIME
.Lreltmo: .Lreltmo:
xorl %r15d, %r15d
/* Get internal lock. */ /* Get internal lock. */
movl $1, %esi movl $1, %esi
xorl %eax, %eax xorl %eax, %eax