Changes in kernel/generic/src/main/kinit.c [b2fa1204:c8cbd39] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
rb2fa1204 rc8cbd39 59 59 #include <mm/km.h> 60 60 #include <print.h> 61 #include <log.h>62 61 #include <memstr.h> 63 62 #include <console/console.h> … … 141 140 thread_ready(thread); 142 141 } else 143 log(LF_OTHER, LVL_ERROR, 144 "Unable to create kcpulb thread for cpu%u", i); 142 printf("Unable to create kcpulb thread for cpu%u\n", i); 145 143 } 146 144 } … … 158 156 thread_ready(thread); 159 157 else 160 log(LF_OTHER, LVL_ERROR, "Unable to create kload thread");158 printf("Unable to create kload thread\n"); 161 159 162 160 #ifdef CONFIG_KCONSOLE … … 170 168 thread_ready(thread); 171 169 else 172 log(LF_OTHER, LVL_ERROR, 173 "Unable to create kconsole thread"); 170 printf("Unable to create kconsole thread\n"); 174 171 } 175 172 #endif /* CONFIG_KCONSOLE */ 176 177 /*178 * Store the default stack size in sysinfo so that uspace can create179 * stack with this default size.180 */181 sysinfo_set_item_val("default.stack_size", NULL, STACK_SIZE_USER);182 173 183 174 interrupts_enable(); … … 213 204 for (i = 0; i < init.cnt; i++) { 214 205 if (init.tasks[i].paddr % FRAME_SIZE) { 215 log(LF_OTHER, LVL_ERROR, 216 "init[%zu]: Address is not frame aligned", i); 206 printf("init[%zu]: Address is not frame aligned\n", i); 217 207 programs[i].task = NULL; 218 208 continue; … … 254 244 CAP_IO_MANAGER | CAP_IRQ_REG); 255 245 256 if (!ipc_phone_0) {246 if (!ipc_phone_0) 257 247 ipc_phone_0 = &programs[i].task->answerbox; 258 /*259 * Hold the first task so that the260 * ipc_phone_0 remains a valid pointer261 * even if the first task exits for262 * whatever reason.263 */264 task_hold(programs[i].task);265 }266 248 } 267 249 … … 277 259 init_rd((void *) init.tasks[i].paddr, init.tasks[i].size); 278 260 } else 279 log(LF_OTHER, LVL_ERROR, 280 "init[%zu]: Init binary load failed " 281 "(error %d, loader status %u)", i, rc, 261 printf("init[%zu]: Init binary load failed " 262 "(error %d, loader status %u)\n", i, rc, 282 263 programs[i].loader_status); 283 264 }
Note:
See TracChangeset
for help on using the changeset viewer.