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
+4
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.