TLS: Fix an error in a macro

This commit is contained in:
Gregory Nutt
2016-03-10 18:10:44 -06:00
parent f16f470881
commit d69dc04d96
3 changed files with 3 additions and 3 deletions
+1 -1
Submodule arch updated: 0d8d0f4ead...7195b24346
+1 -1
View File
@@ -1663,7 +1663,7 @@ int up_timer_start(FAR const struct timespec *ts);
* *
* Returned Value: * Returned Value:
* A pointer to TLS info structure at the beginning of the STACK memory * A pointer to TLS info structure at the beginning of the STACK memory
* allocation. This is essentially an appliction of the TLS_INFO(sp) * allocation. This is essentially an application of the TLS_INFO(sp)
* macro and has a platform dependency only in the manner in which the * macro and has a platform dependency only in the manner in which the
* stack pointer (sp) is obtained and interpreted. * stack pointer (sp) is obtained and interpreted.
* *
+1 -1
View File
@@ -60,7 +60,7 @@
#define TLS_STACK_ALIGN (1L << CONFIG_TLS_LOG2_MAXSTACK) #define TLS_STACK_ALIGN (1L << CONFIG_TLS_LOG2_MAXSTACK)
#define TLS_STACK_MASK (TLS_STACK_ALIGN - 1) #define TLS_STACK_MASK (TLS_STACK_ALIGN - 1)
#define TLS_MAXSTACK (TLS_STACK_ALIGN) #define TLS_MAXSTACK (TLS_STACK_ALIGN)
#define TLS_INFO(sp) ((FAR struct tls_info_s *)((sp) & TLS_STACK_MASK)) #define TLS_INFO(sp) ((FAR struct tls_info_s *)((sp) & ~TLS_STACK_MASK))
/**************************************************************************** /****************************************************************************
* Public Types * Public Types