From c312f3110ebd6b38c3971910fe034b6c97ebb28c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 10 Sep 2020 16:35:09 +0200 Subject: 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. --- cpukit/include/rtems/rtems/tasks.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpukit/include/rtems/rtems/tasks.h') 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 @@ -164,6 +164,15 @@ rtems_status_code rtems_task_create( rtems_id *id ); +/** + * @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 * -- cgit v1.2.3