arm64: fix COMPAT_SHMLBA definition for large pages
authorYury Norov <ynorov@caviumnetworks.com>
Wed, 2 Dec 2015 14:00:10 +0000 (14:00 +0000)
committerAlex Shi <alex.shi@linaro.org>
Wed, 11 May 2016 07:56:34 +0000 (15:56 +0800)
commit2e310797997214e0cc606013ac308167b6b72dc0
tree5a153c186ee56d479874fd6425d2819a4d15e8cb
parent1a9cc42c0a812241f6cd679a19aefba2900437a7
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>
(cherry picked from commit b9b7aebb42d1b1392f3111de61136bb6cf3aae3f)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/include/asm/shmparam.h