]> git.karo-electronics.de Git - linux-beck.git/commit
arm64: fix implementation of mmap2 compat syscall
authorAndreas Schwab <schwab@suse.de>
Mon, 16 Mar 2015 16:32:22 +0000 (16:32 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 19 Mar 2015 10:43:51 +0000 (10:43 +0000)
commit18ccb0cab49ef7868eaf9504f257e1a84683dbbd
tree54d6aecbdfc68fb7a40d39cb09cee3b11ca87158
parentad08fd494bf00c03ae372e0bbd9cefa37bf608d6
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>
arch/arm64/include/asm/unistd32.h
arch/arm64/kernel/entry32.S
arch/arm64/kernel/sys32.c