Sebastian Huber sebh at rtems.org
Thu Sep 17 16:14:40 UTC 2020

Module:    rtems-docs
Branch:    master
Commit:    a5fe9aad19fe003748e0100243c14da5fb9a7d66
Changeset: http://git.rtems.org/rtems-docs/commit/?id=a5fe9aad19fe003748e0100243c14da5fb9a7d66

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Sep 17 18:12:44 2020 +0200


Document this application configuration option.

Close #4074.


 c-user/config/classic-api.rst | 44 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/c-user/config/classic-api.rst b/c-user/config/classic-api.rst
index f0fbe6f..962aa40 100644
--- a/c-user/config/classic-api.rst
+++ b/c-user/config/classic-api.rst
@@ -366,6 +366,50 @@ NOTES:
     the addition of a new configuration parameter to specify the number of
     tasks which enable floating point support.
+    This configuration option is an integer define.
+    The default value is 0.
+    The value of this configuration option shall be greater than or equal to 0
+    and less than or equal to `SIZE_MAX <https://en.cppreference.com/w/c/types/limits>`_.
+    If the value of this configuration option is greater than zero, then it
+    defines the maximum thread-local storage size, otherwise the thread-local
+    storage size is defined by the linker depending on the thread-local storage
+    objects used by the application in the statically-linked executable.
+    This configuration option can be used to reserve space for the dynamic linking
+    of modules with thread-local storage objects.
+    If the thread-local storage size defined by the thread-local storage
+    objects used by the application in the statically-linked executable is greater
+    than a non-zero value of this configuration option, then a fatal error will
+    occur during system initialization.
+    Use :c:func:`RTEMS_ALIGN_UP` and
+    :c:macro:`RTEMS_TASK_STORAGE_ALIGNMENT` to adjust the size to meet the
+    minimum alignment requirement of a thread-local storage area.
+    The actual thread-local storage size is determined when the application
+    executable is linked.  The ``rtems-exeinfo`` command line tool included in
+    the RTEMS Tools can be used to obtain the thread-local storage size and
+    alignment of an application executable.

More information about the vc mailing list