From 5b8df16ef6bf4c4e64da3e5ccd9b3c4c4afb95ca Mon Sep 17 00:00:00 2001 From: Jaxson Han Date: Thu, 7 Sep 2023 14:05:40 +0800 Subject: [PATCH] samples: arch: smp: pi: fix the stack overflow issue The stack guard report this testcase has the stack overflow issue. To fix the issue, slightly increse the stack size. Signed-off-by: Jaxson Han --- samples/arch/smp/pi/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/arch/smp/pi/src/main.c b/samples/arch/smp/pi/src/main.c index 95937e3b275..e141f8f5f1b 100644 --- a/samples/arch/smp/pi/src/main.c +++ b/samples/arch/smp/pi/src/main.c @@ -17,7 +17,7 @@ #define DIGITS_NUM 240 #define LENGTH ((DIGITS_NUM / 4) * 14) -#define STACK_SIZE ((LENGTH * sizeof(int) + 1024)) +#define STACK_SIZE ((LENGTH * sizeof(int) + 1280)) #ifdef CONFIG_SMP #define CORES_NUM arch_num_cpus()