Changes in kernel/generic/src/main/kinit.c [36df4109:a4e23f8c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r36df4109 ra4e23f8c 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> … … 79 78 #include <synch/waitq.h> 80 79 #include <synch/spinlock.h> 81 #include <synch/workqueue.h>82 #include <synch/rcu.h>83 80 84 81 #define ALIVE_CHARS 4 … … 107 104 */ 108 105 thread_detach(THREAD); 109 106 110 107 interrupts_disable(); 111 112 /* Start processing RCU callbacks. RCU is fully functional afterwards. */113 rcu_kinit_init();114 115 /*116 * Start processing work queue items. Some may have been queued during boot.117 */118 workq_global_worker_init();119 108 120 109 #ifdef CONFIG_SMP … … 151 140 thread_ready(thread); 152 141 } else 153 log(LF_OTHER, LVL_ERROR, 154 "Unable to create kcpulb thread for cpu%u", i); 142 printf("Unable to create kcpulb thread for cpu%u\n", i); 155 143 } 156 144 } … … 160 148 * At this point SMP, if present, is configured. 161 149 */ 162 ARCH_OP(post_smp_init);150 arch_post_smp_init(); 163 151 164 152 /* Start thread computing system load */ … … 168 156 thread_ready(thread); 169 157 else 170 log(LF_OTHER, LVL_ERROR, "Unable to create kload thread");158 printf("Unable to create kload thread\n"); 171 159 172 160 #ifdef CONFIG_KCONSOLE … … 180 168 thread_ready(thread); 181 169 else 182 log(LF_OTHER, LVL_ERROR, 183 "Unable to create kconsole thread"); 170 printf("Unable to create kconsole thread\n"); 184 171 } 185 172 #endif /* CONFIG_KCONSOLE */ … … 223 210 for (i = 0; i < init.cnt; i++) { 224 211 if (init.tasks[i].paddr % FRAME_SIZE) { 225 log(LF_OTHER, LVL_ERROR, 226 "init[%zu]: Address is not frame aligned", i); 212 printf("init[%zu]: Address is not frame aligned\n", i); 227 213 programs[i].task = NULL; 228 214 continue; … … 240 226 name = "<unknown>"; 241 227 242 STATIC_ASSERT(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN);228 ASSERT(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN); 243 229 str_cpy(namebuf, TASK_NAME_BUFLEN, INIT_PREFIX); 244 230 str_cpy(namebuf + INIT_PREFIX_LEN, … … 287 273 init_rd((void *) init.tasks[i].paddr, init.tasks[i].size); 288 274 } else 289 log(LF_OTHER, LVL_ERROR, 290 "init[%zu]: Init binary load failed " 291 "(error %d, loader status %u)", i, rc, 275 printf("init[%zu]: Init binary load failed " 276 "(error %d, loader status %u)\n", i, rc, 292 277 programs[i].loader_status); 293 278 }
Note:
See TracChangeset
for help on using the changeset viewer.