tls: Move task_tls_alloc and task_tls_destruct to libc

so task_tls_destruct can be called from usrspace, which is required by:
https://github.com/apache/nuttx/pull/10288

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-08-21 10:26:41 +08:00
committed by Petro Karashchenko
parent cb8df39207
commit 47faeeb360
21 changed files with 23 additions and 30 deletions
-4
View File
@@ -112,10 +112,6 @@ SYSCALL_LOOKUP(task_setcancelstate, 2)
SYSCALL_LOOKUP(task_testcancel, 0)
#endif
#if CONFIG_TLS_TASK_NELEM > 0
SYSCALL_LOOKUP(task_tls_alloc, 1)
#endif
/* The following can be individually enabled */
#ifdef CONFIG_ARCH_HAVE_FORK