Changeset a7818c26 in mainline for libc/generic/psthread.c
- Timestamp:
- 2006-04-09T12:24:36Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fcd10af
- Parents:
- 0319a8f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/generic/psthread.c
r0319a8f6 ra7818c26 34 34 #include <stdio.h> 35 35 #include <kernel/arch/faddr.h> 36 37 38 #ifndef PSTHREAD_INITIAL_STACK_PAGES_NO 39 #define PSTHREAD_INITIAL_STACK_PAGES_NO 1 40 #endif 36 41 37 42 static LIST_INITIALIZE(ready_list); … … 166 171 return 0; 167 172 } 168 pt->stack = (char *) malloc( getpagesize());173 pt->stack = (char *) malloc(PSTHREAD_INITIAL_STACK_PAGES_NO*getpagesize()); 169 174 170 175 if (!pt->stack) { … … 180 185 181 186 context_save(&pt->ctx); 182 context_set(&pt->ctx, FADDR(psthread_main), pt->stack, getpagesize(),187 context_set(&pt->ctx, FADDR(psthread_main), pt->stack, PSTHREAD_INITIAL_STACK_PAGES_NO*getpagesize(), 183 188 tcb); 184 189
Note:
See TracChangeset
for help on using the changeset viewer.