Changeset a35b458 in mainline for uspace/lib/c/generic/libc.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/libc.c
r3061bc1 ra35b458 70 70 /* Initialize user task run-time environment */ 71 71 __malloc_init(); 72 72 73 73 /* Save the PCB pointer */ 74 74 __pcb = (pcb_t *) pcb_ptr; 75 75 76 76 #ifdef CONFIG_RTLD 77 77 if (__pcb != NULL && __pcb->rtld_runtime != NULL) { … … 82 82 } 83 83 #endif 84 84 85 85 fibril_t *fibril = fibril_setup(); 86 86 if (fibril == NULL) 87 87 abort(); 88 88 89 89 __tcb_set(fibril->tcb); 90 91 90 91 92 92 #ifdef FUTEX_UPGRADABLE 93 93 rcu_register_fibril(); 94 94 #endif 95 95 96 96 __async_init(); 97 97 98 98 /* The basic run-time environment is setup */ 99 99 env_setup = true; 100 100 101 101 int argc; 102 102 char **argv; 103 103 104 104 /* 105 105 * Get command line arguments and initialize … … 118 118 (void) vfs_cwd_set(__pcb->cwd); 119 119 } 120 120 121 121 /* 122 122 * Run main() and set task return value … … 134 134 fibril_teardown(__tcb_get()->fibril_data, false); 135 135 } 136 136 137 137 __SYSCALL1(SYS_TASK_EXIT, false); 138 138 139 139 /* Unreachable */ 140 140 while (1); … … 144 144 { 145 145 __SYSCALL1(SYS_TASK_EXIT, true); 146 146 147 147 /* Unreachable */ 148 148 while (1);
Note:
See TracChangeset
for help on using the changeset viewer.