aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/x86_64
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-18 11:05:56 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-05-18 11:05:56 -0700
commit1b74487e904d7e17eda4278598632d2cd81d8068 (patch)
tree9ca594f35403fc022a83a65d98017c77a272835e /sysdeps/unix/x86_64
parenta88b64b9bbf8b2a315206e211250c5529534a477 (diff)
downloadglibc-1b74487e904d7e17eda4278598632d2cd81d8068.zip
glibc-1b74487e904d7e17eda4278598632d2cd81d8068.tar.gz
glibc-1b74487e904d7e17eda4278598632d2cd81d8068.tar.bz2
Use RAX_LP and "or" to operate on return value
Diffstat (limited to 'sysdeps/unix/x86_64')
-rw-r--r--sysdeps/unix/x86_64/sysdep.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/x86_64/sysdep.S b/sysdeps/unix/x86_64/sysdep.S
index 66d90f2..b13fdf4 100644
--- a/sysdeps/unix/x86_64/sysdep.S
+++ b/sysdeps/unix/x86_64/sysdep.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001,2002,2004,2005,2011,2012 Free Software Foundation, Inc.
+/* Copyright (C) 2001-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -34,7 +34,7 @@ __syscall_error:
/* We translate the system's EWOULDBLOCK error into EAGAIN.
The GNU C library always defines EWOULDBLOCK==EAGAIN.
EWOULDBLOCK_sys is the original number. */
- cmpq $EWOULDBLOCK_sys, %rax /* Is it the old EWOULDBLOCK? */
+ cmp $EWOULDBLOCK_sys, %RAX_LP /* Is it the old EWOULDBLOCK? */
jne notb /* Branch if not. */
movl $EAGAIN, %eax /* Yes; translate it to EAGAIN. */
notb:
@@ -45,7 +45,7 @@ notb:
#else
movl %eax, %fs:C_SYMBOL_NAME(errno@TPOFF)
#endif
- movq $-1, %rax
+ or $-1, %RAX_LP
ret
#undef __syscall_error