From 7ca190c20f902c77bdc24c4dd7314987d9ff645f Mon Sep 17 00:00:00 2001 From: Evgeniy Paltsev Date: Wed, 28 Jul 2021 19:37:39 +0300 Subject: [PATCH] ARC: 64BIT: Kconfig increase stacks sizes for 64bit platforms Increase default stacks sizes for 64bit platforms where it is required. Signed-off-by: Eugeniy Paltsev Signed-off-by: Evgeniy Paltsev --- arch/arc/Kconfig | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 1f260ff017d..5b0dff0959a 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -330,7 +330,8 @@ config DCACHE_LINE_SIZE config ARC_EXCEPTION_STACK_SIZE int "ARC exception handling stack size" - default 768 + default 768 if !64BIT + default 2048 if 64BIT help Size in bytes of exception handling stack which is at the top of interrupt stack to get smaller memory footprint because exception @@ -353,11 +354,26 @@ endmenu config MAIN_STACK_SIZE default 4096 if 64BIT -config TEST_EXTRA_STACKSIZE +config ISR_STACK_SIZE + default 4096 if 64BIT + +config SYSTEM_WORKQUEUE_STACK_SIZE + default 4096 if 64BIT + +config IDLE_STACK_SIZE default 1024 if 64BIT +config IPM_CONSOLE_STACK_SIZE + default 2048 if 64BIT + +config TEST_EXTRA_STACKSIZE + default 2048 if 64BIT + config CMSIS_THREAD_MAX_STACK_SIZE - default 1024 if 64BIT + default 2048 if 64BIT config CMSIS_V2_THREAD_MAX_STACK_SIZE - default 1024 if 64BIT + default 2048 if 64BIT + +config CMSIS_V2_THREAD_DYNAMIC_STACK_SIZE + default 2048 if 64BIT