Changes in kernel/generic/src/main/kinit.c [74cb6610:40eab9f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r74cb6610 r40eab9f 122 122 123 123 thread_wire(thread, &cpus[0]); 124 thread_ start(thread);124 thread_ready(thread_ref(thread)); 125 125 thread_join(thread); 126 thread_put(thread); 126 127 127 128 /* … … 135 136 if (thread != NULL) { 136 137 thread_wire(thread, &cpus[i]); 137 thread_start(thread); 138 thread_detach(thread); 138 thread_ready(thread); 139 139 } else 140 140 log(LF_OTHER, LVL_ERROR, … … 152 152 thread = thread_create(kload, NULL, TASK, THREAD_FLAG_NONE, 153 153 "kload"); 154 if (thread != NULL) { 155 thread_start(thread); 156 thread_detach(thread); 157 } else { 154 if (thread != NULL) 155 thread_ready(thread); 156 else 158 157 log(LF_OTHER, LVL_ERROR, "Unable to create kload thread"); 159 }160 158 161 159 #ifdef CONFIG_KCONSOLE … … 166 164 thread = thread_create(kconsole_thread, NULL, TASK, 167 165 THREAD_FLAG_NONE, "kconsole"); 168 if (thread != NULL) { 169 thread_start(thread); 170 thread_detach(thread); 171 } else { 166 if (thread != NULL) 167 thread_ready(thread); 168 else 172 169 log(LF_OTHER, LVL_ERROR, 173 170 "Unable to create kconsole thread"); 174 }175 171 } 176 172 #endif /* CONFIG_KCONSOLE */ … … 313 309 */ 314 310 for (i = 0; i < init.cnt; i++) { 315 if (programs[i].task != NULL) {311 if (programs[i].task != NULL) 316 312 program_ready(&programs[i]); 317 task_release(programs[i].task);318 }319 313 } 320 314
Note:
See TracChangeset
for help on using the changeset viewer.