]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/i386/mmap.S
update from main archive 960904
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / i386 / mmap.S
index 90ac88c46f241477ae874e74ea704280b67dc03c..638d548e007ec3caf295833c5a5711b370b4dbc4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -36,9 +36,9 @@ ENTRY (__mmap)
        /* Restore registers.  */
        movl %edx, %ebx
 
-       /* %eax is < 0 if there was an error.  */
-       testl %eax, %eax
-       jl syscall_error
+       /* If 0 > %eax > -4096 there was an error.  */
+       cmpl $-4096, %eax
+       ja syscall_error
 
        /* Successful; return the syscall's value.  */
        ret