mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 18:37:46 +08:00
prctl syscall is present unconditionally
I had a link problem regarding prctl while CONFIG_TASK_NAME_SIZE was defined 0 and building in protected mode. Turns out in monolithic build prctl is present no matter what CONFIG_TASK_NAME_SIZE, but in protected mode build its only present if CONFIG_TASK_NAME_SIZE > 0. So, bring protected mode build in sync with the monolithic one. Signed-off-by: Michael Jung <michael.jung@secore.ly>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
SYSCALL_LOOKUP1(_exit, 1)
|
||||
SYSCALL_LOOKUP(getpid, 0)
|
||||
SYSCALL_LOOKUP(gettid, 0)
|
||||
SYSCALL_LOOKUP(prctl, 2)
|
||||
|
||||
#ifdef CONFIG_SCHED_HAVE_PARENT
|
||||
SYSCALL_LOOKUP(getppid, 0)
|
||||
@@ -368,12 +369,6 @@ SYSCALL_LOOKUP(futimens, 2)
|
||||
SYSCALL_LOOKUP(socketpair, 4)
|
||||
#endif
|
||||
|
||||
/* The following is defined only if CONFIG_TASK_NAME_SIZE > 0 */
|
||||
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
SYSCALL_LOOKUP(prctl, 2)
|
||||
#endif
|
||||
|
||||
/* The following is defined only if entropy pool random number generator
|
||||
* is enabled.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user