Changeset 228b135 in mainline for kernel/generic/src/main/kinit.c
- Timestamp:
- 2006-11-28T10:55:43Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d4b5542
- Parents:
- 22f851e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r22f851e r228b135 62 62 #include <console/kconsole.h> 63 63 #include <security/cap.h> 64 #include <mm/rd.h> 64 65 65 66 #ifdef CONFIG_SMP … … 159 160 #else /* CONFIG_TEST */ 160 161 161 task_t *utask;162 162 count_t i; 163 163 for (i = 0; i < init.cnt; i++) { 164 164 /* 165 * Run user tasks .165 * Run user tasks, load RAM disk images. 166 166 */ 167 167 168 if (init.tasks[i].addr % FRAME_SIZE) 169 panic("init[%d].addr is not frame aligned", i); 170 171 utask = task_run_program((void *) init.tasks[i].addr, "USPACE"); 168 if (init.tasks[i].addr % FRAME_SIZE) { 169 printf("init[%d].addr is not frame aligned", i); 170 continue; 171 } 172 173 task_t *utask = task_run_program((void *) init.tasks[i].addr, "USPACE"); 172 174 if (utask) { 173 175 /* … … 178 180 if (!ipc_phone_0) 179 181 ipc_phone_0 = &utask->answerbox; 180 } else 181 printf("Init task %zd not started.\n", i); 182 } else { 183 bool rd = init_rd((void *) init.tasks[i].addr); 184 185 if (!rd) 186 printf("Init binary %zd not used.\n", i); 187 } 182 188 } 183 189
Note:
See TracChangeset
for help on using the changeset viewer.