diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-08-10 02:05:42 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-08-10 02:05:42 +0000 |
commit | 6479496ad4d51f2c1b127610a4a0fd46c1404800 (patch) | |
tree | f4f06ab69b219251617dc68562f7bc1f887c01b5 | |
parent | c4adefbd065f2d73b1fd88fbc688c380dac158e5 (diff) | |
download | glibc-6479496ad4d51f2c1b127610a4a0fd46c1404800.tar.gz glibc-6479496ad4d51f2c1b127610a4a0fd46c1404800.tar.xz glibc-6479496ad4d51f2c1b127610a4a0fd46c1404800.zip |
* sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
register in test for error.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index d94d77f2a7..c2cdba5da9 100644 --- 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. diff --git a/sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S b/sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S index 8d74d53a76..a950990627 100644 --- a/sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S +++ b/sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S @@ -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 |