arch: add support 16k page size on ARM64
The BCM2712 of the RaspberryPi 5 supports for 16KB page size. This adds support for 16 KB on ARM64. Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
b200632b1a
commit
7a59c3a4d4
@ -781,6 +781,9 @@ choice
|
|||||||
config BR2_ARM64_PAGE_SIZE_4K
|
config BR2_ARM64_PAGE_SIZE_4K
|
||||||
bool "4KB"
|
bool "4KB"
|
||||||
|
|
||||||
|
config BR2_ARM64_PAGE_SIZE_16K
|
||||||
|
bool "16KB"
|
||||||
|
|
||||||
config BR2_ARM64_PAGE_SIZE_64K
|
config BR2_ARM64_PAGE_SIZE_64K
|
||||||
bool "64KB"
|
bool "64KB"
|
||||||
|
|
||||||
@ -789,6 +792,7 @@ endchoice
|
|||||||
config BR2_ARM64_PAGE_SIZE
|
config BR2_ARM64_PAGE_SIZE
|
||||||
string
|
string
|
||||||
default "4K" if BR2_ARM64_PAGE_SIZE_4K
|
default "4K" if BR2_ARM64_PAGE_SIZE_4K
|
||||||
|
default "16K" if BR2_ARM64_PAGE_SIZE_16K
|
||||||
default "64K" if BR2_ARM64_PAGE_SIZE_64K
|
default "64K" if BR2_ARM64_PAGE_SIZE_64K
|
||||||
|
|
||||||
config BR2_ARCH
|
config BR2_ARCH
|
||||||
|
@ -23,7 +23,7 @@ ifeq ($(BR2_ARC_PAGE_SIZE_4K)$(BR2_ARM64_PAGE_SIZE_4K),y)
|
|||||||
ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096
|
ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096
|
||||||
else ifeq ($(BR2_ARC_PAGE_SIZE_8K),y)
|
else ifeq ($(BR2_ARC_PAGE_SIZE_8K),y)
|
||||||
ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=8192 -Wl,-z,common-page-size=8192
|
ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=8192 -Wl,-z,common-page-size=8192
|
||||||
else ifeq ($(BR2_ARC_PAGE_SIZE_16K),y)
|
else ifeq ($(BR2_ARC_PAGE_SIZE_16K)$(BR2_ARM64_PAGE_SIZE_16K),y)
|
||||||
ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384
|
ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384
|
||||||
else ifeq ($(BR2_ARM64_PAGE_SIZE_64K),y)
|
else ifeq ($(BR2_ARM64_PAGE_SIZE_64K),y)
|
||||||
ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=65536 -Wl,-z,common-page-size=65536
|
ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=65536 -Wl,-z,common-page-size=65536
|
||||||
|
@ -411,6 +411,10 @@ define LINUX_KCONFIG_FIXUP_CMDS
|
|||||||
$(call KCONFIG_ENABLE_OPT,CONFIG_ARM64_4K_PAGES)
|
$(call KCONFIG_ENABLE_OPT,CONFIG_ARM64_4K_PAGES)
|
||||||
$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_16K_PAGES)
|
$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_16K_PAGES)
|
||||||
$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_64K_PAGES))
|
$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_64K_PAGES))
|
||||||
|
$(if $(BR2_ARM64_PAGE_SIZE_16K),
|
||||||
|
$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_4K_PAGES)
|
||||||
|
$(call KCONFIG_ENABLE_OPT,CONFIG_ARM64_16K_PAGES)
|
||||||
|
$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_64K_PAGES))
|
||||||
$(if $(BR2_ARM64_PAGE_SIZE_64K),
|
$(if $(BR2_ARM64_PAGE_SIZE_64K),
|
||||||
$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_4K_PAGES)
|
$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_4K_PAGES)
|
||||||
$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_16K_PAGES)
|
$(call KCONFIG_DISABLE_OPT,CONFIG_ARM64_16K_PAGES)
|
||||||
|
Loading…
Reference in New Issue
Block a user