Changeset bee71f8e in rtems
- Timestamp:
- 04/30/14 12:54:58 (10 years ago)
- 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)
- Location:
- cpukit/score
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/score/include/rtems/score/tls.h
r1461b648 rbee71f8e 80 80 uintptr_t offset; 81 81 } TLS_Index; 82 83 static inline uintptr_t _TLS_Get_size( void ) 84 { 85 /* 86 * Do not use _TLS_Size here since this will lead GCC to assume that this 87 * symbol is not 0 and the tests for 0 will be optimized away. 88 */ 89 return (uintptr_t) _TLS_BSS_end - (uintptr_t) _TLS_Data_begin; 90 } 82 91 83 92 static inline uintptr_t _TLS_Heap_align_up( uintptr_t val ) -
cpukit/score/src/threadinitialize.c
r1461b648 rbee71f8e 44 44 ) 45 45 { 46 uintptr_t tls_size = _TLS_Get_size(); 46 47 size_t actual_stack_size = 0; 47 48 void *stack = NULL; … … 52 53 size_t i; 53 54 bool scheduler_allocated = false; 54 55 /*56 * Do not use _TLS_Size here since this will lead GCC to assume that this57 * 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;60 55 61 56 #if defined( RTEMS_SMP ) -
cpukit/score/src/wkspace.c
r1461b648 rbee71f8e 64 64 uintptr_t page_size = CPU_HEAP_ALIGNMENT; 65 65 uintptr_t overhead = _Heap_Area_overhead( page_size ); 66 uintptr_t tls_size = (uintptr_t) _TLS_Size;66 uintptr_t tls_size = _TLS_Get_size(); 67 67 size_t i; 68 68
Note: See TracChangeset
for help on using the changeset viewer.