Changes in uspace/lib/c/generic/thread/tls.c [ffccdff0:6340b4d2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/thread/tls.c
rffccdff0 r6340b4d2 37 37 38 38 #include <assert.h> 39 #include <stdalign.h>40 39 #include <stddef.h> 41 40 #include <align.h> … … 70 69 #else 71 70 size_t tls_size = tls ? tls->p_memsz : 0; 72 return -ALIGN_UP((ptrdiff_t) tls_size, max(tls_align, alignof(tcb_t)));71 return -ALIGN_UP((ptrdiff_t) tls_size, max(tls_align, _Alignof(tcb_t))); 73 72 #endif 74 73 } … … 105 104 #else 106 105 size_t alloc_size = 107 ALIGN_UP(tls_size, max(tls_align, alignof(tcb_t))) + sizeof(tcb_t);108 #endif 109 110 void *area = alloc(max(tls_align, alignof(tcb_t)), alloc_size);106 ALIGN_UP(tls_size, max(tls_align, _Alignof(tcb_t))) + sizeof(tcb_t); 107 #endif 108 109 void *area = alloc(max(tls_align, _Alignof(tcb_t)), alloc_size); 111 110 if (!area) 112 111 return NULL; … … 188 187 tls_free_arch(tcb, 189 188 ALIGN_UP(tls->p_memsz, tls->p_align) + sizeof(tcb_t), 190 max(tls->p_align, alignof(tcb_t)));189 max(tls->p_align, _Alignof(tcb_t))); 191 190 } 192 191
Note:
See TracChangeset
for help on using the changeset viewer.