Changeset a46da63 in mainline for libc/generic/psthread.c
- Timestamp:
- 2006-06-16T20:50:51Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 153a209
- Parents:
- b34fab6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/generic/psthread.c
rb34fab6 ra46da63 27 27 */ 28 28 29 29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 52 52 static LIST_INITIALIZE(manager_list); 53 53 54 static void psthread_exit(void) __attribute__ ((noinline));55 54 static void psthread_main(void); 56 55 … … 192 191 int psthread_join(pstid_t psthrid) 193 192 { 194 volatile psthread_data_t *pt , *mypt;193 volatile psthread_data_t *pt; 195 194 volatile int retval; 196 195 … … 239 238 240 239 context_save(&pt->ctx); 241 context_set(&pt->ctx, FADDR(psthread_main), pt->stack, PSTHREAD_INITIAL_STACK_PAGES_NO*getpagesize(), 242 pt->tcb); 240 context_set(&pt->ctx, FADDR(psthread_main), pt->stack, PSTHREAD_INITIAL_STACK_PAGES_NO*getpagesize(), pt->tcb); 243 241 244 242 return (pstid_t )pt; … … 308 306 309 307 310 /** @} 311 */ 312 313 308 /** @} 309 */
Note:
See TracChangeset
for help on using the changeset viewer.