Changeset 012dd8e in mainline for uspace/lib/c/generic/libc.c
- Timestamp:
- 2019-08-07T09:15:30Z (5 years ago)
- Children:
- e8747bd8
- Parents:
- 780c8ce
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-11-01 00:08:04)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-07 09:15:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/libc.c
r780c8ce r012dd8e 51 51 #include "private/fibril.h" 52 52 #include "private/malloc.h" 53 #include "private/ns.h" // TODO maybe better filename for session_primary54 53 #include "private/task.h" 54 #include "private/taskman.h" 55 55 56 56 … … 63 63 static bool env_setup; 64 64 static fibril_t main_fibril; 65 66 static void initialize_taskman(pcb_t *pcb) 67 { 68 if (__pcb == NULL) { 69 async_sess_t *session_tm = taskman_connect(); 70 if (session_tm == NULL) { 71 abort(); 72 } 73 __task_init(session_tm); 74 } else { 75 __task_init(__pcb->session_taskman); 76 } 77 } 65 78 66 79 void __libc_main(void *pcb_ptr) … … 107 120 #endif 108 121 109 /* Setup async framework */122 /* Setup async framework and taskman connection */ 110 123 __async_server_init(); 111 if (__pcb == NULL) { 112 __async_client_init(NULL); 113 __task_init(NULL); 114 } else { 115 __async_client_init(__pcb->session_primary); 116 __task_init(__pcb->session_taskman); 117 } 124 __async_client_init(); 118 125 __async_ports_init(); 126 initialize_taskman(__pcb); 119 127 120 128 /* The basic run-time environment is setup */
Note:
See TracChangeset
for help on using the changeset viewer.