Changeset bc1f1c2 in mainline for uspace/lib/libc/generic/libc.c
- Timestamp:
- 2007-06-28T00:54:12Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 12f91130
- Parents:
- b9641ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/libc.c
rb9641ee rbc1f1c2 43 43 #include <thread.h> 44 44 #include <malloc.h> 45 #include < psthread.h>45 #include <fibril.h> 46 46 #include <io/stream.h> 47 47 #include <ipc/ipc.h> … … 58 58 void __main(void) 59 59 { 60 psthread_data_t *pt;60 fibril_t *f; 61 61 62 62 (void) as_area_create(&_heap, 1, AS_AREA_WRITE | AS_AREA_READ); 63 63 _async_init(); 64 pt = psthread_setup();65 __tcb_set( pt->tcb);64 f = fibril_setup(); 65 __tcb_set(f->tcb); 66 66 } 67 67 … … 75 75 void __exit(void) 76 76 { 77 psthread_teardown(__tcb_get()->pst_data);77 fibril_teardown(__tcb_get()->fibril_data); 78 78 _exit(0); 79 79 }
Note:
See TracChangeset
for help on using the changeset viewer.