sched/nx_bringup: Set the initial stack size in kernel build as well

After #7364 this now works, so use it for the init process. It makes sense
as the init process typically requires a big stack (due to init scripts).
This commit is contained in:
Ville Juven 2022-12-09 14:45:37 +02:00 committed by Xiang Xiao
parent 512be93c36
commit 864bcf556e

View File

@ -292,9 +292,8 @@ static inline void nx_start_application(void)
posix_spawnattr_init(&attr);
attr.priority = CONFIG_INIT_PRIORITY;
# ifndef CONFIG_BUILD_KERNEL
attr.stacksize = CONFIG_INIT_STACKSIZE;
# endif
ret = exec_spawn(CONFIG_INIT_FILEPATH, argv, NULL,
CONFIG_INIT_SYMTAB, CONFIG_INIT_NEXPORTS, &attr);
DEBUGASSERT(ret >= 0);