From 387916dd00a0dee4871b0d6b32659ee91d08a160 Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Sun, 14 Jan 2024 20:42:09 +0800 Subject: [PATCH] components,finsh: fix stack overflow when pressing Ctrl+C on native --- components/finsh/shell.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/finsh/shell.h b/components/finsh/shell.h index a74f4da..d3551f0 100644 --- a/components/finsh/shell.h +++ b/components/finsh/shell.h @@ -17,7 +17,10 @@ #ifndef FINSH_THREAD_PRIORITY #define FINSH_THREAD_PRIORITY 20 #endif -#ifndef FINSH_THREAD_STACK_SIZE +#ifdef __ISA_NATIVE__ +#undef FINSH_THREAD_STACK_SIZE +#define FINSH_THREAD_STACK_SIZE (4096 * 3) +#elif !defined(FINSH_THREAD_STACK_SIZE) #define FINSH_THREAD_STACK_SIZE 2048 #endif #ifndef FINSH_CMD_SIZE