summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Kconfig
diff options
context:
space:
mode:
authorChristophe Leroy2019-02-21 20:08:47 +0100
committerMichael Ellerman2019-02-23 11:04:32 +0100
commit166d97d961588d2e52037e96da18d2ead455cec1 (patch)
tree2f26ec12a85caaf3a869dba0f680a3b04a26d720 /arch/powerpc/Kconfig
parentpowerpc/kconfig: define PAGE_SHIFT inside Kconfig (diff)
downloadkernel-qcow2-linux-166d97d961588d2e52037e96da18d2ead455cec1.tar.gz
kernel-qcow2-linux-166d97d961588d2e52037e96da18d2ead455cec1.tar.xz
kernel-qcow2-linux-166d97d961588d2e52037e96da18d2ead455cec1.zip
powerpc/kconfig: define CONFIG_DATA_SHIFT and CONFIG_ETEXT_SHIFT
CONFIG_STRICT_KERNEL_RWX requires a special alignment for DATA for some subarches. Today it is just defined as an #ifdef in vmlinux.lds.S In order to get more flexibility, this patch moves the definition of this alignment in Kconfig On some subarches, CONFIG_STRICT_KERNEL_RWX will require a special alignment of _etext. This patch also adds a configuration item for it in Kconfig Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r--arch/powerpc/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 0f933797c376..14223363a33d 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -721,6 +721,15 @@ config THREAD_SHIFT
Used to define the stack size. The default is almost always what you
want. Only change this if you know what you are doing.
+config ETEXT_SHIFT
+ int
+ default PPC_PAGE_SHIFT
+
+config DATA_SHIFT
+ int
+ default 24 if STRICT_KERNEL_RWX && PPC64
+ default PPC_PAGE_SHIFT
+
config FORCE_MAX_ZONEORDER
int "Maximum zone order"
range 8 9 if PPC64 && PPC_64K_PAGES