about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/i386/mmap64.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/mmap64.S')
-rw-r--r--sysdeps/unix/sysv/linux/i386/mmap64.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/mmap64.S b/sysdeps/unix/sysv/linux/i386/mmap64.S
index 346bb52b5f..0785bce783 100644
--- a/sysdeps/unix/sysv/linux/i386/mmap64.S
+++ b/sysdeps/unix/sysv/linux/i386/mmap64.S
@@ -56,16 +56,16 @@ ENTRY (__mmap64)
 L(do_syscall):
 	int $0x80
 
-	/* If 0 > %eax > -4096 there was an error.  */
-	cmpl $-4096, %eax
-	ja SYSCALL_ERROR_LABEL
-
 	/* Restore registers.  */
 	popl %edi
 	popl %esi
 	popl %ebx
 	popl %ebp
 
+	/* If 0 > %eax > -4096 there was an error.  */
+	cmpl $-4096, %eax
+	ja SYSCALL_ERROR_LABEL
+
 	/* Successful; return the syscall's value.  */
 L(pseudo_end):
 	ret