diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-30 14:54:58 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-05-05 08:26:27 +0200 |
commit | bee71f8e97739cfb2b272cbf5c4822c634b7cac7 (patch) | |
tree | d6774883a5e1ce3ba3daa255fbcf124c0e5fc364 /cpukit/score/src/threadinitialize.c | |
parent | testsuite: Add a per BSP test check for tests not to build. (diff) | |
download | rtems-bee71f8e97739cfb2b272cbf5c4822c634b7cac7.tar.bz2 |
score: Fix TLS size usage
Diffstat (limited to 'cpukit/score/src/threadinitialize.c')
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index f8e0e7d440..fb3d6c8589 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -43,6 +43,7 @@ bool _Thread_Initialize( Objects_Name name ) { + uintptr_t tls_size = _TLS_Get_size(); size_t actual_stack_size = 0; void *stack = NULL; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) @@ -52,12 +53,6 @@ bool _Thread_Initialize( size_t i; bool scheduler_allocated = false; - /* - * Do not use _TLS_Size here since this will lead GCC to assume that this - * symbol is not 0 and the later > 0 test will be optimized away. - */ - uintptr_t tls_size = (uintptr_t) _TLS_BSS_end - (uintptr_t) _TLS_Data_begin; - #if defined( RTEMS_SMP ) if ( rtems_configuration_is_smp_enabled() && !is_preemptible ) { return false; |