From 5782fc46f5202354e2588f5307ea8afe79c15873 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Tue, 24 May 2022 13:49:58 +0300 Subject: [PATCH] mpfs/knsh: Add C++ support Increase the kernel stack size to 2K because it overflows when executing dtors. --- boards/risc-v/mpfs/icicle/configs/knsh/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boards/risc-v/mpfs/icicle/configs/knsh/defconfig b/boards/risc-v/mpfs/icicle/configs/knsh/defconfig index 01f67a106c..fc2f02277f 100644 --- a/boards/risc-v/mpfs/icicle/configs/knsh/defconfig +++ b/boards/risc-v/mpfs/icicle/configs/knsh/defconfig @@ -21,6 +21,7 @@ CONFIG_ARCH_DATA_VBASE=0xC0000000 CONFIG_ARCH_HEAP_NPAGES=0 CONFIG_ARCH_HEAP_VBASE=0x00000000 CONFIG_ARCH_INTERRUPTSTACK=2048 +CONFIG_ARCH_KERNEL_STACKSIZE=2048 CONFIG_ARCH_PGPOOL_MAPPING=y CONFIG_ARCH_PGPOOL_PBASE=0x80200000 CONFIG_ARCH_PGPOOL_SIZE=4194304 @@ -49,6 +50,7 @@ CONFIG_EXAMPLES_HELLO=y CONFIG_EXPERIMENTAL=y CONFIG_FS_PROCFS=y CONFIG_FS_ROMFS=y +CONFIG_HAVE_CXX=y CONFIG_IDLETHREAD_STACKSIZE=2048 CONFIG_INIT_STACKSIZE=3072 CONFIG_INTELHEX_BINARY=y @@ -91,4 +93,5 @@ CONFIG_SYSTEM_CLE_CMD_HISTORY=y CONFIG_SYSTEM_NSH=y CONFIG_SYSTEM_NSH_PROGNAME="init" CONFIG_SYSTEM_TIME64=y +CONFIG_TESTING_CXXTEST=y CONFIG_UART1_SERIAL_CONSOLE=y