Changeset 153c7a29 in mainline for uspace/lib/c/generic/libc.c
- Timestamp:
- 2016-05-22T17:46:10Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0dc2fec
- Parents:
- 2112a79
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/libc.c
r2112a79 r153c7a29 41 41 */ 42 42 43 #include <errno.h> 43 44 #include <libc.h> 44 45 #include <stdlib.h> … … 65 66 void __main(void *pcb_ptr) 66 67 { 68 /* Initialize user task run-time environment */ 69 __malloc_init(); 70 67 71 /* Save the PCB pointer */ 68 72 __pcb = (pcb_t *) pcb_ptr; … … 71 75 if (__pcb != NULL && __pcb->rtld_runtime != NULL) { 72 76 runtime_env = (rtld_t *) __pcb->rtld_runtime; 77 } else { 78 if (rtld_init_static() != EOK) 79 abort(); 73 80 } 74 81 #endif 75 /* Initialize user task run-time environment */76 __malloc_init();77 82 78 83 fibril_t *fibril = fibril_setup();
Note:
See TracChangeset
for help on using the changeset viewer.