]> git.baikalelectronics.ru Git - kernel.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)
commit7281703b430228c552a75339500c67cb377fd6ae
tree54d6aecbdfc68fb7a40d39cb09cee3b11ca87158
parentd82ecb6af1b271919bb41eb48517ac933427ea3d
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