This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 864bcf556e sched/nx_bringup: Set the initial stack size in kernel build as well 864bcf556e is described below commit 864bcf556e6ebf6e8c5e63352f5bd00018d94a58 Author: Ville Juven <ville.ju...@unikie.com> AuthorDate: Fri Dec 9 14:45:37 2022 +0200 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). --- sched/init/nx_bringup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sched/init/nx_bringup.c b/sched/init/nx_bringup.c index dbf6df0e0b..f712a10f10 100644 --- a/sched/init/nx_bringup.c +++ b/sched/init/nx_bringup.c @@ -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);