-
CONFIG_MAIN_STACK_SIZE
¶
Size of stack for initialization and main thread
Type: int
Help¶
When the initialization is complete, the thread executing it then executes the main() routine, so as to reuse the stack used by the initialization, which would be wasted RAM otherwise.
After initialization is complete, the thread runs main().
Defaults¶
2048
2048
2048
2048
2048
2048
2048
2048
2048
4096
4096 if
64BIT
4096 if
COVERAGE_GCOV
2048
8192
2048 if
COVERAGE_GCOV
1024 if
TEST_ARM_CORTEX_M
1024
Kconfig definitions¶
At soc/arc/snps_emsdp/Kconfig.defconfig.em4:30
Included via Kconfig:8
→ Kconfig.zephyr:19
→ doc/_build/Kconfig/Kconfig.soc.defconfig:1
→ soc/arc/snps_emsdp/Kconfig.defconfig:14
Menu path: (Top)
config MAIN_STACK_SIZE int default 2048 depends onSOC_EMSDP_EM4
&&SOC_ARC_EMSDP
At soc/arc/snps_emsdp/Kconfig.defconfig.em5d:30
Included via Kconfig:8
→ Kconfig.zephyr:19
→ doc/_build/Kconfig/Kconfig.soc.defconfig:1
→ soc/arc/snps_emsdp/Kconfig.defconfig:15
Menu path: (Top)
config MAIN_STACK_SIZE int default 2048 depends onSOC_EMSDP_EM5D
&&SOC_ARC_EMSDP
At soc/arc/snps_emsdp/Kconfig.defconfig.em6:30
Included via Kconfig:8
→ Kconfig.zephyr:19
→ doc/_build/Kconfig/Kconfig.soc.defconfig:1
→ soc/arc/snps_emsdp/Kconfig.defconfig:16
Menu path: (Top)
config MAIN_STACK_SIZE int default 2048 depends onSOC_EMSDP_EM6
&&SOC_ARC_EMSDP
At soc/arc/snps_emsdp/Kconfig.defconfig.em7d:30
Included via Kconfig:8
→ Kconfig.zephyr:19
→ doc/_build/Kconfig/Kconfig.soc.defconfig:1
→ soc/arc/snps_emsdp/Kconfig.defconfig:17
Menu path: (Top)
config MAIN_STACK_SIZE int default 2048 depends onSOC_EMSDP_EM7D
&&SOC_ARC_EMSDP
At soc/arc/snps_emsdp/Kconfig.defconfig.em9d:30
Included via Kconfig:8
→ Kconfig.zephyr:19
→ doc/_build/Kconfig/Kconfig.soc.defconfig:1
→ soc/arc/snps_emsdp/Kconfig.defconfig:19
Menu path: (Top)
config MAIN_STACK_SIZE int default 2048 depends onSOC_EMSDP_EM9D
&&SOC_ARC_EMSDP
At soc/arc/snps_emsdp/Kconfig.defconfig.em11d:30
Included via Kconfig:8
→ Kconfig.zephyr:19
→ doc/_build/Kconfig/Kconfig.soc.defconfig:1
→ soc/arc/snps_emsdp/Kconfig.defconfig:20
Menu path: (Top)
config MAIN_STACK_SIZE int default 2048 depends onSOC_EMSDP_EM11D
&&SOC_ARC_EMSDP
At soc/arc/snps_emsk/Kconfig.defconfig.em7d:43
Included via Kconfig:8
→ Kconfig.zephyr:19
→ doc/_build/Kconfig/Kconfig.soc.defconfig:1
→ soc/arc/snps_emsk/Kconfig.defconfig:10
Menu path: (Top)
config MAIN_STACK_SIZE int default 2048 depends onARC_MPU_VER
= 2 &&SOC_EMSK_EM7D
&&SOC_EMSK
At soc/arc/snps_nsim/Kconfig.defconfig.em:41
Included via Kconfig:8
→ Kconfig.zephyr:19
→ doc/_build/Kconfig/Kconfig.soc.defconfig:1
→ soc/arc/snps_nsim/Kconfig.defconfig:15
Menu path: (Top)
config MAIN_STACK_SIZE int default 2048 depends onARC_MPU_VER
= 2 &&SOC_NSIM_EM
&&SOC_NSIM
At soc/arc/snps_nsim/Kconfig.defconfig.em7d_v22:38
Included via Kconfig:8
→ Kconfig.zephyr:19
→ doc/_build/Kconfig/Kconfig.soc.defconfig:1
→ soc/arc/snps_nsim/Kconfig.defconfig:16
Menu path: (Top)
config MAIN_STACK_SIZE int default 2048 depends onARC_MPU_VER
= 2 &&SOC_NSIM_EM7D_V22
&&SOC_NSIM
At arch/arm/core/aarch64/Kconfig:32
Included via Kconfig:8
→ Kconfig.zephyr:29
→ arch/Kconfig:12
→ arch/arm/Kconfig:46
Menu path: (Top) → ARM Options
config MAIN_STACK_SIZE int default 4096 depends onARM64
&&ARM
At arch/riscv/Kconfig:135
Included via Kconfig:8
→ Kconfig.zephyr:29
→ arch/Kconfig:12
Menu path: (Top) → RISCV Options
config MAIN_STACK_SIZE int default 4096 if64BIT
depends onRISCV
At arch/sparc/Kconfig:41
Included via Kconfig:8
→ Kconfig.zephyr:29
→ arch/Kconfig:12
Menu path: (Top) → SPARC Options
config MAIN_STACK_SIZE int default 4096 ifCOVERAGE_GCOV
default 2048 depends onSPARC
At arch/x86/core/Kconfig.intel64:8
Included via Kconfig:8
→ Kconfig.zephyr:29
→ arch/Kconfig:12
→ arch/x86/Kconfig:320
Menu path: (Top) → X86 Architecture Options
config MAIN_STACK_SIZE int default 8192 depends onX86_64
&&X86
At kernel/Kconfig:150
Included via Kconfig:8
→ Kconfig.zephyr:30
Menu path: (Top) → General Kernel Options
config MAIN_STACK_SIZE int "Size of stack for initialization and main thread" default 2048 ifCOVERAGE_GCOV
default 1024 ifTEST_ARM_CORTEX_M
default 512 ifZTEST
&& !(RISCV
||X86
) default 1024 help When the initialization is complete, the thread executing it then executes the main() routine, so as to reuse the stack used by the initialization, which would be wasted RAM otherwise. After initialization is complete, the thread runs main().
(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)