This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 594ae1e boards: rv-virt: Fix stack corruption for rv64 configs
594ae1e is described below
commit 594ae1e7fc5f77f734a970b04ea20d4c5455ef08
Author: Masayuki Ishikawa <[email protected]>
AuthorDate: Fri Mar 25 17:40:34 2022 +0900
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 <[email protected]>
---
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 65c4495..f621901 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 8567615..e9a7d67 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