summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S')
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S2
1 files changed, 1 insertions, 1 deletions
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