diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-12-09 01:39:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-12-09 01:39:16 +0000 |
commit | af1680f1f9926a0662fc35a53c491d2eec1ab262 (patch) | |
tree | ae7d3277c18194231c558f8ef146ff5d8628c684 /sysdeps/unix/sysv/linux/i386 | |
parent | d587d83bd9825c431456774321bfd0d5eabe7fee (diff) | |
download | glibc-af1680f1f9926a0662fc35a53c491d2eec1ab262.tar.gz glibc-af1680f1f9926a0662fc35a53c491d2eec1ab262.tar.xz glibc-af1680f1f9926a0662fc35a53c491d2eec1ab262.zip |
Update.
* elf/readlib.c: Include a.out.h last since the Linux/Alpha headers are not clean enough.
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/mmap64.S | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/mmap64.S b/sysdeps/unix/sysv/linux/i386/mmap64.S index 075c3f3345..916149a78a 100644 --- a/sysdeps/unix/sysv/linux/i386/mmap64.S +++ b/sysdeps/unix/sysv/linux/i386/mmap64.S @@ -21,6 +21,7 @@ #include "kernel-features.h" #define EINVAL 22 +#define ENOSYS 38 .text @@ -36,11 +37,12 @@ ENTRY (__mmap64) movl $SYS_ify(mmap2), %eax /* System call number in %eax. */ - movl 40(%esp), %ebp + movl 40(%esp), %edx movl 44(%esp), %ecx - shrld $12, %ecx, %ebp /* mmap2 takes the offset in pages. */ + shrdl $12, %ecx, %edx /* mmap2 takes the offset in pages. */ shrl $12, %ecx jne L(einval) + movl %edx, %ebp movl 20(%esp), %ebx movl 24(%esp), %ecx @@ -68,8 +70,8 @@ L(pseudo_end): #ifndef __ASSUME_MMAP2_SYSCALL 2: - cmp $-EINVAL, %eax - je 2f + cmp $-ENOSYS, %eax + je 3f #endif /* This means the offset value is too large. */ @@ -88,7 +90,7 @@ L(einval): /* Save registers. */ movl %ebx, %edx # endif - +3: cmpl $0, 44(%esp) jne L(einval) |