Changeset a35b458 in mainline for uspace/lib/c/generic/tls.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/tls.c
r3061bc1 ra35b458 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 82 tcb = tls_alloc_arch(&data, tls_size); 83 83 if (!tcb) 84 84 return NULL; 85 85 86 86 /* 87 87 * Copy thread local data from the initialization image. … … 119 119 if (!tcb) 120 120 return NULL; 121 121 122 122 *data = ((void *) tcb) + sizeof(tcb_t); 123 123 #ifdef CONFIG_RTLD … … 150 150 { 151 151 tcb_t *tcb; 152 152 153 153 size = ALIGN_UP(size, &_tls_alignment); 154 154 *data = memalign((uintptr_t) &_tls_alignment, sizeof(tcb_t) + size);
Note:
See TracChangeset
for help on using the changeset viewer.