diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-09 10:12:14 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-12 09:08:36 +0100 |
commit | f4dbf37dd432623c345f8e19f78a4eb01fcedb8b (patch) | |
tree | cb18eb86ccce8ab3fff22c9c4543ddaf9d93b183 /cpukit/include/rtems/score/stackimpl.h | |
parent | score: Simplify FP context allocation (diff) | |
download | rtems-f4dbf37dd432623c345f8e19f78a4eb01fcedb8b.tar.bz2 |
score: Simplify TLS area allocation
Use the stack area to allocate the TLS area.
Update #3835.
Diffstat (limited to 'cpukit/include/rtems/score/stackimpl.h')
-rw-r--r-- | cpukit/include/rtems/score/stackimpl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/include/rtems/score/stackimpl.h b/cpukit/include/rtems/score/stackimpl.h index 60704534c7..aafde5d1a0 100644 --- a/cpukit/include/rtems/score/stackimpl.h +++ b/cpukit/include/rtems/score/stackimpl.h @@ -23,6 +23,7 @@ #include <rtems/score/stack.h> #include <rtems/score/context.h> +#include <rtems/score/tls.h> #ifdef __cplusplus extern "C" { @@ -87,7 +88,8 @@ RTEMS_INLINE_ROUTINE bool _Stack_Is_enough( { size_t minimum; - minimum = _Stack_Minimum(); + minimum = _TLS_Get_allocation_size(); + minimum += _Stack_Minimum(); #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { |