]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Pop registers after mmap2 call before handling error.
authorUlrich Drepper <drepper@redhat.com>
Mon, 3 Jan 2000 01:19:03 +0000 (01:19 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 3 Jan 2000 01:19:03 +0000 (01:19 +0000)
sysdeps/unix/sysv/linux/i386/mmap64.S

index 6d239a9a2ed9b5b13a201b19e672aa23c60301f1..fbe54577036767b42765153fffcfb178b2d189e9 100644 (file)
@@ -54,16 +54,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