summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/rtems/tasks.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-10 16:35:09 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-17 17:42:25 +0200
commitc312f3110ebd6b38c3971910fe034b6c97ebb28c (patch)
treedcc82c92d7088b1d9c2e12e1ece1f6b705f49a05 /cpukit/include/rtems/rtems/tasks.h
parentrtems: Add RTEMS_ALIGN_UP() (diff)
downloadrtems-c312f3110ebd6b38c3971910fe034b6c97ebb28c.tar.bz2
CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE
Add this application configuration option. This configuration option can be used to reserve space for the dynamic linking of modules with thread-local storage objects. Add RTEMS_TASK_STORAGE_ALIGNMENT to define the minium alignment of a thread-local storage size. Update #4074.
Diffstat (limited to '')
-rw-r--r--cpukit/include/rtems/rtems/tasks.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/include/rtems/rtems/tasks.h b/cpukit/include/rtems/rtems/tasks.h
index 12c323e60e..e07db6cd2b 100644
--- a/cpukit/include/rtems/rtems/tasks.h
+++ b/cpukit/include/rtems/rtems/tasks.h
@@ -165,6 +165,15 @@ rtems_status_code rtems_task_create(
);
/**
+ * @brief This constant defines the recommended alignment of a task storage
+ * area in bytes.
+ *
+ * Use it with RTEMS_ALIGNED() to define the alignment of a statically
+ * allocated task storage area.
+ */
+#define RTEMS_TASK_STORAGE_ALIGNMENT CPU_HEAP_ALIGNMENT
+
+/**
* @brief RTEMS Task Name to Id
*
* This routine implements the rtems_task_ident directive.