Ignore:
Timestamp:
04/30/14 12:54:58 (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
d20b029
Parents:
1461b648
git-author:
Sebastian Huber <sebastian.huber@…> (04/30/14 12:54:58)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/05/14 06:26:27)
Message:

score: Fix TLS size usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/threadinitialize.c

    r1461b648 rbee71f8e  
    4444)
    4545{
     46  uintptr_t                tls_size = _TLS_Get_size();
    4647  size_t                   actual_stack_size = 0;
    4748  void                    *stack = NULL;
     
    5253  size_t                   i;
    5354  bool                     scheduler_allocated = false;
    54 
    55   /*
    56    * Do not use _TLS_Size here since this will lead GCC to assume that this
    57    * symbol is not 0 and the later > 0 test will be optimized away.
    58    */
    59   uintptr_t  tls_size = (uintptr_t) _TLS_BSS_end - (uintptr_t) _TLS_Data_begin;
    6055
    6156#if defined( RTEMS_SMP )
Note: See TracChangeset for help on using the changeset viewer.