Changes in kernel/generic/src/main/kinit.c [1871118:40eab9f] in mainline
- File:
-
- 1 edited
-
kernel/generic/src/main/kinit.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r1871118 r40eab9f 61 61 #include <stdio.h> 62 62 #include <log.h> 63 #include <mem .h>63 #include <memw.h> 64 64 #include <console/console.h> 65 65 #include <interrupt.h> … … 69 69 #include <ipc/ipc.h> 70 70 #include <str.h> 71 #include <str_error.h> 71 72 #include <sysinfo/stats.h> 72 73 #include <sysinfo/sysinfo.h> 73 74 #include <align.h> 74 75 #include <stdlib.h> 76 #include <debug/register.h> 75 77 76 78 #ifdef CONFIG_SMP … … 182 184 */ 183 185 size_t i; 184 program_t programs[CONFIG_INIT_TASKS] ;186 program_t programs[CONFIG_INIT_TASKS] = { }; 185 187 186 188 // FIXME: do not propagate arguments through sysinfo … … 237 239 PAGE_READ | PAGE_WRITE | PAGE_CACHEABLE); 238 240 assert(page); 241 242 if (str_cmp(name, "kernel.dbg") == 0) { 243 /* 244 * Not an actual init task, but rather debug sections extracted 245 * from the kernel ELF file and handed to us here so we can use 246 * it for debugging. 247 */ 248 249 register_debug_data((void *) page, init.tasks[i].size); 250 programs[i].task = NULL; 251 continue; 252 } 239 253 240 254 if (str_cmp(name, "loader") == 0) { … … 254 268 } 255 269 256 errno_t rc = program_create_from_image((void *) page, namebuf,270 errno_t rc = program_create_from_image((void *) page, init.tasks[i].size, namebuf, 257 271 &programs[i]); 258 272
Note:
See TracChangeset
for help on using the changeset viewer.
