From: Ulrich Drepper Date: Mon, 3 Jan 2000 01:19:03 +0000 (+0000) Subject: Pop registers after mmap2 call before handling error. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b47f767c5f6ef0f3bad8a02f8ac64a9ca20870f5;p=thirdparty%2Fglibc.git Pop registers after mmap2 call before handling error. --- diff --git a/sysdeps/unix/sysv/linux/i386/mmap64.S b/sysdeps/unix/sysv/linux/i386/mmap64.S index 6d239a9a2ed..fbe54577036 100644 --- a/sysdeps/unix/sysv/linux/i386/mmap64.S +++ b/sysdeps/unix/sysv/linux/i386/mmap64.S @@ -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