arm64: fix COMPAT_SHMLBA definition for large pages
authorYury Norov <ynorov@caviumnetworks.com>
Wed, 2 Dec 2015 14:00:10 +0000 (14:00 +0000)
committerWill Deacon <will.deacon@arm.com>
Wed, 2 Dec 2015 14:00:10 +0000 (14:00 +0000)
commitb9b7aebb42d1b1392f3111de61136bb6cf3aae3f
treed9d942330eb79f5d44fa71fbe9c437daeac7c1b0
parenta7c61a3452d39078919f0e1f493ff966fb64f0db
arm64: fix COMPAT_SHMLBA definition for large pages

ARM glibc uses (4 * __getpagesize()) for SHMLBA, which is correct for
4KB pages and works fine for 64KB pages, but the kernel uses a hardcoded
16KB that is too small for 64KB page based kernels. This changes the
definition to what user space sees when using 64KB pages.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/shmparam.h