-
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 if
COVERAGE_GCOV
- 512 if
ZTEST
&& !(RISCV
||X86
) - 1024
Kconfig definitions¶
At soc/arc/snps_emsdp/Kconfig.defconfig.em4:33
Included via Kconfig:10
→ Kconfig.zephyr:28
→ soc/arc/snps_emsdp/Kconfig.defconfig:22
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:33
Included via Kconfig:10
→ Kconfig.zephyr:28
→ soc/arc/snps_emsdp/Kconfig.defconfig:23
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:33
Included via Kconfig:10
→ Kconfig.zephyr:28
→ soc/arc/snps_emsdp/Kconfig.defconfig:24
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:33
Included via Kconfig:10
→ Kconfig.zephyr:28
→ soc/arc/snps_emsdp/Kconfig.defconfig:25
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:33
Included via Kconfig:10
→ Kconfig.zephyr:28
→ soc/arc/snps_emsdp/Kconfig.defconfig:27
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:33
Included via Kconfig:10
→ Kconfig.zephyr:28
→ soc/arc/snps_emsdp/Kconfig.defconfig:28
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:46
Included via Kconfig:10
→ Kconfig.zephyr:28
→ soc/arc/snps_emsk/Kconfig.defconfig:14
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:44
Included via Kconfig:10
→ Kconfig.zephyr:28
→ soc/arc/snps_nsim/Kconfig.defconfig:17
Menu path: (Top)
config MAIN_STACK_SIZE int default 2048 depends onARC_MPU_VER
= 2 &&SOC_NSIM_EM
&&SOC_NSIM
At kernel/Kconfig:148
Included via Kconfig:10
→ Kconfig.zephyr:36
Menu path: (Top) → General Kernel Options
config MAIN_STACK_SIZE int "Size of stack for initialization and main thread" default 2048 ifCOVERAGE_GCOV
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.)