sched/spawn: Support task_spawnattr_[set|get]stacksize in kernel mode

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-10-20 03:10:23 +08:00
committed by Masayuki Ishikawa
parent 55083b31a9
commit b9b032af72
6 changed files with 10 additions and 32 deletions
-2
View File
@@ -106,12 +106,10 @@ int exec_spawn(FAR const char *filename, FAR char * const *argv,
bin->priority = attr->priority;
}
#ifndef CONFIG_BUILD_KERNEL
if (attr->stacksize > 0)
{
bin->stacksize = attr->stacksize;
}
#endif
}
/* Disable pre-emption so that the executed module does