From 594ae1e7fc5f77f734a970b04ea20d4c5455ef08 Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Fri, 25 Mar 2022 17:40:34 +0900 Subject: [PATCH] boards: rv-virt: Fix stack corruption for rv64 configs Summary: - This commit fixes stack corruption for rv64 configs Impact: - None Testing: - Tested with qemu-6.2 Signed-off-by: Masayuki Ishikawa --- boards/risc-v/qemu-rv/rv-virt/configs/nsh64/defconfig | 2 ++ boards/risc-v/qemu-rv/rv-virt/configs/smp64/defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/boards/risc-v/qemu-rv/rv-virt/configs/nsh64/defconfig b/boards/risc-v/qemu-rv/rv-virt/configs/nsh64/defconfig index 65c449558a..f621901598 100644 --- a/boards/risc-v/qemu-rv/rv-virt/configs/nsh64/defconfig +++ b/boards/risc-v/qemu-rv/rv-virt/configs/nsh64/defconfig @@ -47,6 +47,7 @@ CONFIG_DEV_ZERO=y CONFIG_FS_PROCFS=y CONFIG_IDLETHREAD_STACKSIZE=2048 CONFIG_INIT_ENTRYPOINT="nsh_main" +CONFIG_INIT_STACKSIZE=3072 CONFIG_INTELHEX_BINARY=y CONFIG_LIBC_FLOATINGPOINT=y CONFIG_LIBC_PERROR_STDOUT=y @@ -65,6 +66,7 @@ CONFIG_STACK_COLORATION=y CONFIG_START_MONTH=12 CONFIG_START_YEAR=2021 CONFIG_SYSTEM_NSH=y +CONFIG_SYSTEM_NSH_STACKSIZE=3072 CONFIG_TESTING_OSTEST=y CONFIG_TESTING_OSTEST_FPUSIZE=264 CONFIG_USEC_PER_TICK=1000 diff --git a/boards/risc-v/qemu-rv/rv-virt/configs/smp64/defconfig b/boards/risc-v/qemu-rv/rv-virt/configs/smp64/defconfig index 8567615a8c..e9a7d67d2b 100644 --- a/boards/risc-v/qemu-rv/rv-virt/configs/smp64/defconfig +++ b/boards/risc-v/qemu-rv/rv-virt/configs/smp64/defconfig @@ -47,6 +47,7 @@ CONFIG_DEV_ZERO=y CONFIG_FS_PROCFS=y CONFIG_IDLETHREAD_STACKSIZE=2048 CONFIG_INIT_ENTRYPOINT="nsh_main" +CONFIG_INIT_STACKSIZE=3072 CONFIG_INTELHEX_BINARY=y CONFIG_LIBC_FLOATINGPOINT=y CONFIG_LIBC_PERROR_STDOUT=y @@ -67,6 +68,7 @@ CONFIG_STACK_COLORATION=y CONFIG_START_MONTH=12 CONFIG_START_YEAR=2021 CONFIG_SYSTEM_NSH=y +CONFIG_SYSTEM_NSH_STACKSIZE=3072 CONFIG_TESTING_OSTEST=y CONFIG_TESTING_OSTEST_FPUSIZE=264 CONFIG_TESTING_SMP=y