]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix futex syscall parameter for x86 absolute timeout waits.
authorBryan Kadzban <bz-glibc@kdzbn.homelinux.net>
Thu, 11 Jun 2009 18:32:51 +0000 (11:32 -0700)
committerUlrich Drepper <drepper@redhat.com>
Thu, 11 Jun 2009 18:32:51 +0000 (11:32 -0700)
This affects only installations compiled for kernels older than 2.6.18.

nptl/ChangeLog
nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S

index d83b46125c6d69e54ca9f676328de1c25ecedacf..34a5f9112e0df6703b3881edf479649930201ba8 100644 (file)
@@ -1,3 +1,11 @@
+2009-06-11  Ulrich Drepper  <drepper@redhat.com>
+
+       [BZ #10262]
+       * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
+       (LOAD_FUTEX_WAIT_ABS): Fix futex parameter in case private futexes
+       cannot be assumed.
+       Patch by Bryan Kadzban <bz-glibc@kdzbn.homelinux.net>.
+
 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
 
        * libc-cancellation.c: Move __libc_cleanup_routine to...
index 056b72900aace69b5e0ae4470680f352821b3639..7578c7ece049c6baa36b77bf83a8517aeb326836 100644 (file)
@@ -60,7 +60,7 @@
 # define LOAD_FUTEX_WAIT_ABS(reg) \
        xorl    $FUTEX_PRIVATE_FLAG, reg ; \
        andl    %gs:PRIVATE_FUTEX, reg ; \
-       orl     $FUTEX_WAIT | FUTEX_CLOCK_REALTIME, reg
+       orl     $FUTEX_WAIT_BITSET | FUTEX_CLOCK_REALTIME, reg
 # define LOAD_FUTEX_WAKE(reg) \
        xorl    $FUTEX_PRIVATE_FLAG, reg ; \
        andl    %gs:PRIVATE_FUTEX, reg ; \