syscall: nx_task_spawn should exist in the flat build just like the protected build

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-05-02 18:36:48 +08:00
committed by patacongo
parent 54d0256b9a
commit 31c60c3b0e
6 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -99,7 +99,7 @@ static int nxtask_spawn_exec(FAR pid_t *pidp, FAR const char *name,
sched_lock();
/* Use the default task priority and stack size if no attributes are provided */
/* Use the default priority and stack size if no attributes are provided */
if (attr)
{
@@ -459,7 +459,7 @@ errout_with_lock:
*
****************************************************************************/
#ifdef CONFIG_BUILD_PROTECTED
#ifdef CONFIG_LIB_SYSCALL
int nx_task_spawn(FAR const struct spawn_syscall_parms_s *parms)
{
DEBUGASSERT(parms != NULL);