mirror of
https://github.com/apache/nuttx.git
synced 2026-03-27 02:29:15 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user