From: Sean Anderson Date: Sat, 1 Aug 2020 09:32:05 -0400 Subject: [PATCH 2/6] configs: reduce stack size of Sipeed MAIX In-Reply-To: <20200729154235.90766-3-xypron.glpk@gmx.de> References: <20200729154235.90766-1-xypron.glpk@gmx.de> <20200729154235.90766-3-xypron.glpk@gmx.de> Message-ID: <8aef352c-143c-ebe5-82b3-1c2466bc310d@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 7/29/20 11:42 AM, Heinrich Schuchardt wrote: > The K210 has only 8 MiB RAM thereof 2 MiB reserved for AI. > > Allow only 1 MiB for the stack. > > Signed-off-by: Heinrich Schuchardt > --- > configs/sipeed_maix_bitm_defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/configs/sipeed_maix_bitm_defconfig b/configs/sipeed_maix_bitm_defconfig > index 96651f0268..459bf0d530 100644 > --- a/configs/sipeed_maix_bitm_defconfig > +++ b/configs/sipeed_maix_bitm_defconfig > @@ -1,6 +1,7 @@ > CONFIG_RISCV=y > CONFIG_TARGET_SIPEED_MAIX=y > CONFIG_ARCH_RV64I=y > +CONFIG_STACK_SIZE=0x100000 > # CONFIG_NET is not set > # CONFIG_INPUT is not set > # CONFIG_DM_ETH is not set > -- > 2.27.0 > Why is the stack size set so large? On Linux they use 16K stacks with 64-bit RISC-V. Does EFI need an especially large stack? --Sean