Changeset 0aae87a6 in mainline
- Timestamp:
- 2012-11-09T19:33:11Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67b152e
- Parents:
- 3b8a990
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r3b8a990 r0aae87a6 172 172 #endif /* CONFIG_KCONSOLE */ 173 173 174 /* 175 * Store the default stack size in sysinfo so that uspace can create 176 * stack with this default size. 177 */ 178 sysinfo_set_item_val("default.stack_size", NULL, STACK_SIZE); 179 174 180 interrupts_enable(); 175 181 -
uspace/lib/c/Makefile
r3b8a990 r0aae87a6 140 140 generic/net/socket_client.c \ 141 141 generic/net/socket_parse.c \ 142 generic/stack.c \ 142 143 generic/stacktrace.c \ 143 144 generic/arg_parse.c \ -
uspace/lib/c/generic/fibril.c
r3b8a990 r0aae87a6 37 37 #include <fibril.h> 38 38 #include <thread.h> 39 #include <stack.h> 39 40 #include <tls.h> 40 41 #include <malloc.h> … … 271 272 return 0; 272 273 273 fibril->stack = as_area_create((void *) -1,274 FIBRIL_INITIAL_STACK_PAGES_NO * getpagesize(),274 size_t stack_size = stack_size_get(); 275 fibril->stack = as_area_create((void *) -1, stack_size, 275 276 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE | AS_AREA_GUARD | 276 277 AS_AREA_LATE_RESERVE); … … 285 286 context_save(&fibril->ctx); 286 287 context_set(&fibril->ctx, FADDR(fibril_main), fibril->stack, 287 FIBRIL_INITIAL_STACK_PAGES_NO * getpagesize(), fibril->tcb);288 stack_size, fibril->tcb); 288 289 289 290 return (fid_t) fibril; -
uspace/lib/c/generic/thread.c
r3b8a990 r0aae87a6 39 39 #include <abi/proc/uarg.h> 40 40 #include <fibril.h> 41 #include <stack.h> 41 42 #include <str.h> 42 43 #include <async.h> … … 101 102 return ENOMEM; 102 103 103 size_t stack_size = getpagesize() * THREAD_INITIAL_STACK_PAGES;104 size_t stack_size = stack_size_get(); 104 105 void *stack = as_area_create(AS_AREA_ANY, stack_size, 105 106 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE | AS_AREA_GUARD |
Note:
See TracChangeset
for help on using the changeset viewer.