summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/confdefs/threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/include/rtems/confdefs/threads.h')
-rw-r--r--cpukit/include/rtems/confdefs/threads.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/include/rtems/confdefs/threads.h b/cpukit/include/rtems/confdefs/threads.h
index 97508068e2..279c6264db 100644
--- a/cpukit/include/rtems/confdefs/threads.h
+++ b/cpukit/include/rtems/confdefs/threads.h
@@ -138,6 +138,11 @@ typedef union {
const size_t _Thread_Maximum_name_size = CONFIGURE_MAXIMUM_THREAD_NAME_SIZE;
+RTEMS_STATIC_ASSERT(
+ CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE % RTEMS_TASK_STORAGE_ALIGNMENT == 0,
+ CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE
+);
+
const size_t _Thread_Maximum_TLS_size =
CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE;