mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 10:39:23 +07:00
b9b7aebb42
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>
29 lines
965 B
C
29 lines
965 B
C
/*
|
|
* Copyright (C) 2012 ARM Ltd.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
#ifndef __ASM_SHMPARAM_H
|
|
#define __ASM_SHMPARAM_H
|
|
|
|
/*
|
|
* For IPC syscalls from compat tasks, we need to use the legacy 16k
|
|
* alignment value. Since we don't have aliasing D-caches, the rest of
|
|
* the time we can safely use PAGE_SIZE.
|
|
*/
|
|
#define COMPAT_SHMLBA (4 * PAGE_SIZE)
|
|
|
|
#include <asm-generic/shmparam.h>
|
|
|
|
#endif /* __ASM_SHMPARAM_H */
|