summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2015-03-16 16:32:22 +0000
committerWill Deacon <will.deacon@arm.com>2015-03-19 10:43:51 +0000
commit18ccb0cab49ef7868eaf9504f257e1a84683dbbd (patch)
tree54d6aecbdfc68fb7a40d39cb09cee3b11ca87158 /arch/arm64/include
parentad08fd494bf00c03ae372e0bbd9cefa37bf608d6 (diff)
downloadop-kernel-dev-18ccb0cab49ef7868eaf9504f257e1a84683dbbd.zip
op-kernel-dev-18ccb0cab49ef7868eaf9504f257e1a84683dbbd.tar.gz
arm64: fix implementation of mmap2 compat syscall
The arm mmap2 syscall takes the offset in units of 4K, thus with 64K pages the offset needs to be scaled to units of pages. Signed-off-by: Andreas Schwab <schwab@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de> [will: removed redundant lr parameter, localised PAGE_SHIFT #if check] Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r--arch/arm64/include/asm/unistd32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h
index 2722442..cef934a 100644
--- a/arch/arm64/include/asm/unistd32.h
+++ b/arch/arm64/include/asm/unistd32.h
@@ -406,7 +406,7 @@ __SYSCALL(__NR_vfork, sys_vfork)
#define __NR_ugetrlimit 191 /* SuS compliant getrlimit */
__SYSCALL(__NR_ugetrlimit, compat_sys_getrlimit) /* SuS compliant getrlimit */
#define __NR_mmap2 192
-__SYSCALL(__NR_mmap2, sys_mmap_pgoff)
+__SYSCALL(__NR_mmap2, compat_sys_mmap2_wrapper)
#define __NR_truncate64 193
__SYSCALL(__NR_truncate64, compat_sys_truncate64_wrapper)
#define __NR_ftruncate64 194
OpenPOWER on IntegriCloud