diff --git a/include/nuttx/sched.h b/include/nuttx/sched.h index 8b12a134e17..36c7ebadd79 100644 --- a/include/nuttx/sched.h +++ b/include/nuttx/sched.h @@ -348,27 +348,6 @@ struct pthread_cleanup_s }; #endif -/* type tls_ndxset_t & tls_dtor_t *******************************************/ - -/* Smallest addressable type that can hold the entire configured number of - * TLS data indexes. - */ - -#if CONFIG_TLS_NELEM > 0 -# if CONFIG_TLS_NELEM > 32 -# error Too many TLS elements -# elif CONFIG_TLS_NELEM > 16 - typedef uint32_t tls_ndxset_t; -# elif CONFIG_TLS_NELEM > 8 - typedef uint16_t tls_ndxset_t; -# else - typedef uint8_t tls_ndxset_t; -# endif - -typedef CODE void (*tls_dtor_t)(FAR void *); - -#endif - /* struct dspace_s **********************************************************/ /* This structure describes a reference counted D-Space region. diff --git a/include/nuttx/tls.h b/include/nuttx/tls.h index d893059ef1b..5e655f742e8 100644 --- a/include/nuttx/tls.h +++ b/include/nuttx/tls.h @@ -61,6 +61,27 @@ * Public Types ****************************************************************************/ +/* type tls_ndxset_t & tls_dtor_t *******************************************/ + +/* Smallest addressable type that can hold the entire configured number of + * TLS data indexes. + */ + +#if CONFIG_TLS_NELEM > 0 +# if CONFIG_TLS_NELEM > 32 +# error Too many TLS elements +# elif CONFIG_TLS_NELEM > 16 + typedef uint32_t tls_ndxset_t; +# elif CONFIG_TLS_NELEM > 8 + typedef uint16_t tls_ndxset_t; +# else + typedef uint8_t tls_ndxset_t; +# endif + +typedef CODE void (*tls_dtor_t)(FAR void *); + +#endif + struct task_info_s { sem_t ta_sem;