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