]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
authorUlrich Drepper <drepper@redhat.com>
Fri, 10 Aug 2007 02:05:42 +0000 (02:05 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 10 Aug 2007 02:05:42 +0000 (02:05 +0000)
register in test for error.

ChangeLog
sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S

index d94d77f2a7effce1fe8d7b6d4a758e4b6d35386d..c2cdba5da914b088ba51c3755060b12a2bfe379f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
+       register in test for error.
+
        * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
        * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
 
index 8d74d53a7606d908c6be155a696e6febb8917201..a95099062795561d994a7371aca6c3d5b0c280a3 100644 (file)
@@ -38,7 +38,7 @@ ENTRY (sched_getcpu)
        movq    $VSYSCALL_ADDR_vgetcpu, %rax
        callq   *%rax
 
-       cmpq    $-4095, %rdi
+       cmpq    $-4095, %rax
        jae     SYSCALL_ERROR_LABEL
 
        movl    (%rsp), %eax