Changes in kernel/generic/src/main/kinit.c [da1bafb:9dae191e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
rda1bafb r9dae191e 95 95 void kinit(void *arg) 96 96 { 97 #if defined(CONFIG_SMP) || defined(CONFIG_KCONSOLE) 97 98 thread_t *thread; 99 #endif 98 100 99 101 /* … … 115 117 thread = thread_create(kmp, NULL, TASK, THREAD_FLAG_WIRED, "kmp", true); 116 118 if (thread != NULL) { 117 irq_spinlock_lock(&thread->lock, false);119 spinlock_lock(&thread->lock); 118 120 thread->cpu = &cpus[0]; 119 irq_spinlock_unlock(&thread->lock, false);121 spinlock_unlock(&thread->lock); 120 122 thread_ready(thread); 121 123 } else … … 135 137 thread = thread_create(kcpulb, NULL, TASK, THREAD_FLAG_WIRED, "kcpulb", true); 136 138 if (thread != NULL) { 137 irq_spinlock_lock(&thread->lock, false);139 spinlock_lock(&thread->lock); 138 140 thread->cpu = &cpus[i]; 139 irq_spinlock_unlock(&thread->lock, false);141 spinlock_unlock(&thread->lock); 140 142 thread_ready(thread); 141 143 } else … … 199 201 str_cpy(namebuf + INIT_PREFIX_LEN, 200 202 TASK_NAME_BUFLEN - INIT_PREFIX_LEN, name); 201 203 202 204 int rc = program_create_from_image((void *) init.tasks[i].addr, 203 205 namebuf, &programs[i]); … … 222 224 } 223 225 } 224 226 225 227 /* 226 228 * Run user tasks. … … 230 232 program_ready(&programs[i]); 231 233 } 232 234 233 235 #ifdef CONFIG_KCONSOLE 234 236 if (!stdin) {
Note:
See TracChangeset
for help on using the changeset viewer.