Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/kinit.c

    r40eab9f r1871118  
    6161#include <stdio.h>
    6262#include <log.h>
    63 #include <memw.h>
     63#include <mem.h>
    6464#include <console/console.h>
    6565#include <interrupt.h>
     
    6969#include <ipc/ipc.h>
    7070#include <str.h>
    71 #include <str_error.h>
    7271#include <sysinfo/stats.h>
    7372#include <sysinfo/sysinfo.h>
    7473#include <align.h>
    7574#include <stdlib.h>
    76 #include <debug/register.h>
    7775
    7876#ifdef CONFIG_SMP
     
    184182         */
    185183        size_t i;
    186         program_t programs[CONFIG_INIT_TASKS] = { };
     184        program_t programs[CONFIG_INIT_TASKS];
    187185
    188186        // FIXME: do not propagate arguments through sysinfo
     
    239237                    PAGE_READ | PAGE_WRITE | PAGE_CACHEABLE);
    240238                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                 }
    253239
    254240                if (str_cmp(name, "loader") == 0) {
     
    268254                }
    269255
    270                 errno_t rc = program_create_from_image((void *) page, init.tasks[i].size, namebuf,
     256                errno_t rc = program_create_from_image((void *) page, namebuf,
    271257                    &programs[i]);
    272258
Note: See TracChangeset for help on using the changeset viewer.