From b47f767c5f6ef0f3bad8a02f8ac64a9ca20870f5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 3 Jan 2000 01:19:03 +0000 Subject: [PATCH] Pop registers after mmap2 call before handling error. --- sysdeps/unix/sysv/linux/i386/mmap64.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.47.2