Skip to content

Commit

Permalink
arm64: fix COMPAT_SHMLBA definition for large pages
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Yury Norov <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
  • Loading branch information
norov authored and wildea01 committed Dec 2, 2015
1 parent a7c61a3 commit b9b7aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/include/asm/shmparam.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* alignment value. Since we don't have aliasing D-caches, the rest of
* the time we can safely use PAGE_SIZE.
*/
#define COMPAT_SHMLBA 0x4000
#define COMPAT_SHMLBA (4 * PAGE_SIZE)

#include <asm-generic/shmparam.h>

Expand Down

0 comments on commit b9b7aeb

Please sign in to comment.