Message ID | 4c839069fd12579dfbf6aeba12ea5c556b57a437.1587039712.git.michal.simek@xilinx.com |
---|---|
State | Accepted |
Commit | b72f4505277369bb9d8013370d5f316aff49f596 |
Headers | show |
Series | ARM: zynq: Setup stack size via Kconfig | expand |
?t 16. 4. 2020 v 14:21 odes?latel Michal Simek <michal.simek at xilinx.com> napsal: > > Stack size has been introduced by commit a69814c815b9 ("arm64: zynqmp: > Set initrd_high to as high as possible") and commit 085201c246ee ("arm64: > versal: Set initrd_high to as high as possible") > to support setting up initrd_high as high as possible. > The same change should happen for Zynq because the code is moved to xilinx > common location. > > Signed-off-by: Michal Simek <michal.simek at xilinx.com> > --- > > arch/arm/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index bbb1e2738bfe..2140dd27f4ec 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -475,7 +475,7 @@ config TPL_USE_ARCH_MEMSET > > config SET_STACK_SIZE > bool "Enable an option to set max stack size that can be used" > - default y if ARCH_VERSAL || ARCH_ZYNQMP > + default y if ARCH_VERSAL || ARCH_ZYNQMP || ARCH_ZYNQ > help > This will enable an option to set max stack size that can be > used by U-Boot. > @@ -484,6 +484,7 @@ config STACK_SIZE > hex "Define max stack size that can be used by U-Boot" > depends on SET_STACK_SIZE > default 0x4000000 if ARCH_VERSAL || ARCH_ZYNQMP > + default 0x1000000 if ARCH_ZYNQ > help > Define Max stack size that can be used by U-Boot so that the > initrd_high will be calculated as base stack pointer minus this > -- > 2.26.0 > Applied. M
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index bbb1e2738bfe..2140dd27f4ec 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -475,7 +475,7 @@ config TPL_USE_ARCH_MEMSET config SET_STACK_SIZE bool "Enable an option to set max stack size that can be used" - default y if ARCH_VERSAL || ARCH_ZYNQMP + default y if ARCH_VERSAL || ARCH_ZYNQMP || ARCH_ZYNQ help This will enable an option to set max stack size that can be used by U-Boot. @@ -484,6 +484,7 @@ config STACK_SIZE hex "Define max stack size that can be used by U-Boot" depends on SET_STACK_SIZE default 0x4000000 if ARCH_VERSAL || ARCH_ZYNQMP + default 0x1000000 if ARCH_ZYNQ help Define Max stack size that can be used by U-Boot so that the initrd_high will be calculated as base stack pointer minus this
Stack size has been introduced by commit a69814c815b9 ("arm64: zynqmp: Set initrd_high to as high as possible") and commit 085201c246ee ("arm64: versal: Set initrd_high to as high as possible") to support setting up initrd_high as high as possible. The same change should happen for Zynq because the code is moved to xilinx common location. Signed-off-by: Michal Simek <michal.simek at xilinx.com> --- arch/arm/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)