Changes in uspace/lib/c/generic/fibril.c [eceff5f:e7267a2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/fibril.c
receff5f re7267a2 95 95 fibril_t *fibril_setup(void) 96 96 { 97 tcb_t *tcb = tls_make();97 tcb_t *tcb = __make_tls(); 98 98 if (!tcb) 99 99 return NULL; … … 101 101 fibril_t *fibril = malloc(sizeof(fibril_t)); 102 102 if (!fibril) { 103 tls_free(tcb);103 __free_tls(tcb); 104 104 return NULL; 105 105 } … … 122 122 void fibril_teardown(fibril_t *fibril) 123 123 { 124 tls_free(fibril->tcb);124 __free_tls(fibril->tcb); 125 125 free(fibril); 126 126 } … … 256 256 * @param func Implementing function of the new fibril. 257 257 * @param arg Argument to pass to func. 258 * @param stksz Stack size in bytes.259 258 * 260 259 * @return 0 on failure or TLS of the new fibril. 261 260 * 262 261 */ 263 fid_t fibril_create _generic(int (*func)(void *), void *arg, size_t stksz)262 fid_t fibril_create(int (*func)(void *), void *arg) 264 263 { 265 264 fibril_t *fibril; … … 269 268 return 0; 270 269 271 size_t stack_size = (stksz == FIBRIL_DFLT_STK_SIZE) ? 272 stack_size_get() : stksz; 270 size_t stack_size = stack_size_get(); 273 271 fibril->stack = as_area_create((void *) -1, stack_size, 274 272 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE | AS_AREA_GUARD |
Note:
See TracChangeset
for help on using the changeset viewer.