mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-30 17:41:16 +03:00
Really use R12 and r13.
This commit is contained in:
@@ -56,11 +56,11 @@ sem_timedwait:
|
|||||||
pushq %r13
|
pushq %r13
|
||||||
subq $16, %rsp
|
subq $16, %rsp
|
||||||
|
|
||||||
movq %rdi, %r8
|
movq %rdi, %r12
|
||||||
movq %rsi, %r9
|
movq %rsi, %r13
|
||||||
|
|
||||||
/* Check for invalid nanosecond field. */
|
/* Check for invalid nanosecond field. */
|
||||||
cmpq $1000000000, 8(%r9)
|
cmpq $1000000000, 8(%r13)
|
||||||
movl $EINVAL, %eax
|
movl $EINVAL, %eax
|
||||||
jae 6f
|
jae 6f
|
||||||
|
|
||||||
@@ -73,8 +73,8 @@ sem_timedwait:
|
|||||||
movq 8(%rsp), %rax
|
movq 8(%rsp), %rax
|
||||||
movq $1000, %rdi
|
movq $1000, %rdi
|
||||||
mul %rdi /* Milli seconds to nano seconds. */
|
mul %rdi /* Milli seconds to nano seconds. */
|
||||||
movq (%r9), %rdi
|
movq (%r13), %rdi
|
||||||
movq 8(%r9), %rdi
|
movq 8(%r13), %rdi
|
||||||
subq (%rsp), %rdi
|
subq (%rsp), %rdi
|
||||||
subq %rax, %rdi
|
subq %rax, %rdi
|
||||||
jns 5f
|
jns 5f
|
||||||
@@ -88,7 +88,7 @@ sem_timedwait:
|
|||||||
movq %rsi, 8(%rsp)
|
movq %rsi, 8(%rsp)
|
||||||
|
|
||||||
movq %rsp, %r10
|
movq %rsp, %r10
|
||||||
movq %r8, %rdi
|
movq %r12, %rdi
|
||||||
xorq %rsi, %rsi
|
xorq %rsi, %rsi
|
||||||
movq $SYS_futex, %rax
|
movq $SYS_futex, %rax
|
||||||
xorl %edx, %edx
|
xorl %edx, %edx
|
||||||
|
Reference in New Issue
Block a user