Changeset 91e4567 in mainline for uspace/lib/c/generic/libc.c
- Timestamp:
- 2016-05-06T15:21:22Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0dc9a474
- Parents:
- 7c4b26c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/libc.c
r7c4b26c r91e4567 65 65 void __main(void *pcb_ptr) 66 66 { 67 /* Save the PCB pointer */ 68 __pcb = (pcb_t *) pcb_ptr; 69 70 #ifdef CONFIG_RTLD 71 if (__pcb != NULL && __pcb->rtld_runtime != NULL) { 72 runtime_env = (rtld_t *) __pcb->rtld_runtime; 73 } 74 #endif 67 75 /* Initialize user task run-time environment */ 68 76 __malloc_init(); … … 74 82 __tcb_set(fibril->tcb); 75 83 76 /* Save the PCB pointer */77 __pcb = (pcb_t *) pcb_ptr;78 84 79 85 #ifdef FUTEX_UPGRADABLE … … 89 95 char **argv; 90 96 91 #ifdef CONFIG_RTLD92 if (__pcb != NULL && __pcb->rtld_runtime != NULL) {93 runtime_env = (rtld_t *) __pcb->rtld_runtime;94 }95 #endif96 97 /* 97 98 * Get command line arguments and initialize
Note:
See TracChangeset
for help on using the changeset viewer.