syscall/ and related: Fix an error found in build testing. Inconsistent conditional compilation led to link errors in certain configurations.

This commit is contained in:
Gregory Nutt
2019-08-27 16:41:07 -06:00
parent ac151e05e7
commit 5f02b0335f
6 changed files with 11 additions and 5 deletions

View File

@@ -135,7 +135,7 @@ extern "C"
void add_file_action(FAR posix_spawn_file_actions_t *file_action,
FAR struct spawn_general_file_action_s *entry);
#ifdef CONFIG_LIB_SYSCALL
#ifdef CONFIG_BUILD_PROTECTED
int nx_task_spawn(FAR const struct spawn_syscall_parms_s *parms);
#endif

View File

@@ -128,8 +128,12 @@
#ifndef CONFIG_BUILD_KERNEL
# define SYS_task_create __SYS_task_create
#ifdef CONFIG_BUILD_PROTECTED
# define SYS_nx_task_spawn (__SYS_task_create + 1)
# define __SYS_task_delete (__SYS_task_create + 2)
#else
# define __SYS_task_delete (__SYS_task_create + 1)
#endif
/* pgalloc() is only available with address environments with the page
* allocator selected. MMU support from the CPU is also required.