Changeset da1bafb in mainline for kernel/generic/src/main/kinit.c
- Timestamp:
- 2010-05-24T18:57:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0095368
- Parents:
- 666f492
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r666f492 rda1bafb 115 115 thread = thread_create(kmp, NULL, TASK, THREAD_FLAG_WIRED, "kmp", true); 116 116 if (thread != NULL) { 117 spinlock_lock(&thread->lock);117 irq_spinlock_lock(&thread->lock, false); 118 118 thread->cpu = &cpus[0]; 119 spinlock_unlock(&thread->lock);119 irq_spinlock_unlock(&thread->lock, false); 120 120 thread_ready(thread); 121 121 } else … … 135 135 thread = thread_create(kcpulb, NULL, TASK, THREAD_FLAG_WIRED, "kcpulb", true); 136 136 if (thread != NULL) { 137 spinlock_lock(&thread->lock);137 irq_spinlock_lock(&thread->lock, false); 138 138 thread->cpu = &cpus[i]; 139 spinlock_unlock(&thread->lock);139 irq_spinlock_unlock(&thread->lock, false); 140 140 thread_ready(thread); 141 141 } else … … 199 199 str_cpy(namebuf + INIT_PREFIX_LEN, 200 200 TASK_NAME_BUFLEN - INIT_PREFIX_LEN, name); 201 201 202 202 int rc = program_create_from_image((void *) init.tasks[i].addr, 203 203 namebuf, &programs[i]); … … 222 222 } 223 223 } 224 224 225 225 /* 226 226 * Run user tasks. … … 230 230 program_ready(&programs[i]); 231 231 } 232 232 233 233 #ifdef CONFIG_KCONSOLE 234 234 if (!stdin) {
Note:
See TracChangeset
for help on using the changeset viewer.