Changeset b4df8db in mainline for uspace/lib/c/generic/fibril.c
- Timestamp:
- 2013-03-11T19:48:41Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 623bab8f
- Parents:
- e4d96e9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/fibril.c
re4d96e9 rb4df8db 256 256 * @param func Implementing function of the new fibril. 257 257 * @param arg Argument to pass to func. 258 * @param stksz Stack size, -1 for the system default stack size. 258 259 * 259 260 * @return 0 on failure or TLS of the new fibril. 260 261 * 261 262 */ 262 fid_t fibril_create (int (*func)(void *), void *arg)263 fid_t fibril_create_generic(int (*func)(void *), void *arg, size_t stksz) 263 264 { 264 265 fibril_t *fibril; … … 268 269 return 0; 269 270 270 size_t stack_size = stack_size_get();271 size_t stack_size = (stksz == (size_t) -1) ? stack_size_get() : stksz; 271 272 fibril->stack = as_area_create((void *) -1, stack_size, 272 273 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE | AS_AREA_GUARD |
Note:
See TracChangeset
for help on using the changeset viewer.