Changeset dc5c303 in mainline for kernel/generic/src/main/kinit.c
- Timestamp:
- 2023-12-28T13:59:23Z (7 months ago)
- Children:
- 6b66de6b
- Parents:
- 42c2e65 (diff), f87ff8e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
- git-committer:
- GitHub <noreply@…> (2023-12-28 13:59:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r42c2e65 rdc5c303 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.