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