summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-03 09:36:45 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-05 06:58:33 +0100
commit1de00d685d4ad5af7c6b09711b34369dc7d31bae (patch)
tree0a6e8c8df435d09dfe0fee5c528acf1ce77e01bc /cpukit/include
parentvalidation: Fix for 64-bit targets (diff)
downloadrtems-1de00d685d4ad5af7c6b09711b34369dc7d31bae.tar.bz2
CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE
Ensure that CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE meets the task storage alignment requirement.
Diffstat (limited to 'cpukit/include')
-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;