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