From 56b6e214d5d3bfa72fb999b496999fab14937575 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 3 Jan 2000 01:22:20 +0000 Subject: Update. * posix/Makefile (tests): Add tst-mmap. * posix/tst-mmap.c: New file. * sysdeps/unix/sysv/linux/i386/mmap64.S: Pop registers after mmap2 call before handling error. --- sysdeps/unix/sysv/linux/i386/mmap64.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sysdeps') 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 -- cgit v1.2.3