You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2022/05/27 12:14:54 UTC

[incubator-nuttx] branch master updated: mpfs/knsh: Add C++ support

This is an automated email from the ASF dual-hosted git repository.

acassis 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 5782fc46f5 mpfs/knsh: Add C++ support
5782fc46f5 is described below

commit 5782fc46f5202354e2588f5307ea8afe79c15873
Author: Ville Juven <vi...@unikie.com>
AuthorDate: Tue May 24 13:49:58 2022 +0300

    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