Changes in uspace/lib/c/generic/tls.c [58563585:118a872] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/tls.c
r58563585 r118a872 74 74 tcb_t *tcb; 75 75 size_t tls_size = &_tbss_end - &_tdata_start; 76 76 77 77 #ifdef CONFIG_RTLD 78 78 if (runtime_env != NULL) 79 79 return rtld_tls_make(runtime_env); 80 80 #endif 81 82 81 tcb = tls_alloc_arch(&data, tls_size); 83 82 if (!tcb) 84 83 return NULL; 85 84 86 85 /* 87 86 * Copy thread local data from the initialization image. … … 119 118 if (!tcb) 120 119 return NULL; 121 122 *data = ((void *) tcb) + sizeof(tcb_t); 120 *data = ((void *)tcb) + sizeof(tcb_t); 123 121 #ifdef CONFIG_RTLD 124 122 tcb->dtv = NULL; … … 150 148 { 151 149 tcb_t *tcb; 152 150 153 151 size = ALIGN_UP(size, &_tls_alignment); 154 152 *data = memalign((uintptr_t) &_tls_alignment, sizeof(tcb_t) + size);
Note:
See TracChangeset
for help on using the changeset viewer.