Changeset 6f4495f5 in mainline for kernel/generic/src/main/kinit.c
- Timestamp:
- 2007-01-27T17:32:13Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1ba41c5
- Parents:
- 51baa8a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r51baa8a r6f4495f5 99 99 * Just a beautification. 100 100 */ 101 if ((t = thread_create(kmp, NULL, TASK, THREAD_FLAG_WIRED, "kmp", true))) { 101 if ((t = thread_create(kmp, NULL, TASK, THREAD_FLAG_WIRED, 102 "kmp", true))) { 102 103 spinlock_lock(&t->lock); 103 104 t->cpu = &cpus[0]; … … 124 125 for (i = 0; i < config.cpu_count; i++) { 125 126 126 if ((t = thread_create(kcpulb, NULL, TASK, THREAD_FLAG_WIRED, "kcpulb", true))) { 127 if ((t = thread_create(kcpulb, NULL, TASK, 128 THREAD_FLAG_WIRED, "kcpulb", true))) { 127 129 spinlock_lock(&t->lock); 128 130 t->cpu = &cpus[i]; … … 144 146 * Create kernel console. 145 147 */ 146 if ((t = thread_create(kconsole, "kconsole", TASK, 0, "kconsole", false))) 148 t = thread_create(kconsole, "kconsole", TASK, 0, "kconsole", false); 149 if (t) 147 150 thread_ready(t); 148 151 else … … 162 165 } 163 166 164 task_t *utask = task_run_program((void *) init.tasks[i].addr, "uspace"); 167 task_t *utask = task_run_program((void *) init.tasks[i].addr, 168 "uspace"); 165 169 if (utask) { 166 170 /* 167 171 * Set capabilities to init userspace tasks. 168 172 */ 169 cap_set(utask, CAP_CAP | CAP_MEM_MANAGER | CAP_IO_MANAGER | CAP_PREEMPT_CONTROL | CAP_IRQ_REG); 173 cap_set(utask, CAP_CAP | CAP_MEM_MANAGER | 174 CAP_IO_MANAGER | CAP_PREEMPT_CONTROL | CAP_IRQ_REG); 170 175 171 176 if (!ipc_phone_0) 172 177 ipc_phone_0 = &utask->answerbox; 173 178 } else { 174 int rd = init_rd((rd_header *) init.tasks[i].addr, init.tasks[i].size); 179 int rd = init_rd((rd_header *) init.tasks[i].addr, 180 init.tasks[i].size); 175 181 176 182 if (rd != RE_OK)
Note:
See TracChangeset
for help on using the changeset viewer.