Changeset 80649a91 in mainline for libc/generic/libc.c
- Timestamp:
- 2006-05-21T19:28:37Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a410beb
- Parents:
- 1ee11f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/generic/libc.c
r1ee11f4 r80649a91 34 34 #include <io/stream.h> 35 35 #include <ipc/ipc.h> 36 #include <async.h> 36 37 37 38 void _exit(int status) { … … 40 41 41 42 void __main(void) { 42 tcb_t *tcb; 43 44 tcb = __make_tls(); 45 __tcb_set(tcb); 46 psthread_setup(tcb); 47 _ipc_init(); 43 psthread_data_t *pt; 44 45 _async_init(); 46 pt = psthread_setup(); 47 __tcb_set(pt->tcb); 48 48 } 49 49 … … 55 55 56 56 void __exit(void) { 57 tcb_t *tcb; 58 59 tcb = __tcb_get(); 60 psthread_teardown(tcb->pst_data); 61 __free_tls(tcb); 57 psthread_teardown(__tcb_get()->pst_data); 62 58 _exit(0); 63 59 }
Note:
See TracChangeset
for help on using the changeset viewer.