aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/arm/mmap64.S
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-27 02:45:47 +0000
committerRoland McGrath <roland@gnu.org>2003-03-27 02:45:47 +0000
commit8eed661a56099ba0d4f2e03958ac921d1ca40194 (patch)
treefd5210d06aa5e159f87cb513c9a37805f5326086 /sysdeps/unix/sysv/linux/arm/mmap64.S
parent18ef464b2fd20dcfdb57e1ad8eb86a912c874538 (diff)
downloadglibc-8eed661a56099ba0d4f2e03958ac921d1ca40194.tar
glibc-8eed661a56099ba0d4f2e03958ac921d1ca40194.tar.gz
glibc-8eed661a56099ba0d4f2e03958ac921d1ca40194.tar.bz2
glibc-8eed661a56099ba0d4f2e03958ac921d1ca40194.zip
2003-03-27 Philip Blundell <philb@gnu.org>
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm. * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code when __ASSUME_VFORK_SYSCALL is defined. * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for __ASSUME_MMAP2_SYSCALL. * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for __ASSUME_REALTIME_SIGNALS.
Diffstat (limited to 'sysdeps/unix/sysv/linux/arm/mmap64.S')
-rw-r--r--sysdeps/unix/sysv/linux/arm/mmap64.S9
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/mmap64.S b/sysdeps/unix/sysv/linux/arm/mmap64.S
index 1f19bf02e1..3936e25d26 100644
--- a/sysdeps/unix/sysv/linux/arm/mmap64.S
+++ b/sysdeps/unix/sysv/linux/arm/mmap64.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2003 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
@@ -21,6 +21,8 @@
#define EINVAL 22
#define ENOSYS 38
+#include "kernel-features.h"
+
/* The mmap2 system call takes six arguments, all in registers. */
.text
ENTRY (__mmap64)
@@ -39,6 +41,10 @@ ENTRY (__mmap64)
swi SYS_ify (mmap2)
cmn r0, $4096
LOADREGS(ccfd, sp!, {r4, r5, pc})
+# ifdef __ASSUME_MMAP2_SYSCALL
+ ldmfd sp!, {r4, r5, lr}
+ b PLTJMP(syscall_error)
+# else
cmn r0, $ENOSYS
ldmnefd sp!, {r4, r5, lr}
bne PLTJMP(syscall_error)
@@ -49,6 +55,7 @@ ENTRY (__mmap64)
teq r5, $0
ldmeqfd sp!, {r4, r5, lr}
beq PLTJMP(__mmap)
+# endif
.Linval:
mov r0, $-EINVAL
ldmfd sp!, {r4, r5, lr}