(__lll_mutex_timedlock_wait): Preserve r8 and r9 since the
authordrepper <drepper>
Wed, 24 Mar 2004 01:55:56 +0000 (01:55 +0000)
committerdrepper <drepper>
Wed, 24 Mar 2004 01:55:56 +0000 (01:55 +0000)
vgettimeofday call miht destroy the content.

nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S

index 2c918d7..cf3dad1 100644 (file)
@@ -78,6 +78,8 @@ __lll_mutex_timedlock_wait:
        cmpq    $1000000000, 8(%rdx)
        jae     3f
 
+       pushq   %r8
+       pushq   %r9
        pushq   %r12
        pushq   %r13
        pushq   %r14
@@ -142,6 +144,8 @@ __lll_mutex_timedlock_wait:
        popq    %r14
        popq    %r13
        popq    %r12
+       popq    %r9
+       popq    %r8
        retq
 
        /* Check whether the time expired.  */