Ignore:
File:
1 edited

Legend:

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

    rb2fa1204 r67b152e  
    5959#include <mm/km.h>
    6060#include <print.h>
    61 #include <log.h>
    6261#include <memstr.h>
    6362#include <console/console.h>
     
    141140                                thread_ready(thread);
    142141                        } else
    143                                 log(LF_OTHER, LVL_ERROR,
    144                                     "Unable to create kcpulb thread for cpu%u", i);
     142                                printf("Unable to create kcpulb thread for cpu%u\n", i);
    145143                }
    146144        }
     
    158156                thread_ready(thread);
    159157        else
    160                 log(LF_OTHER, LVL_ERROR, "Unable to create kload thread");
     158                printf("Unable to create kload thread\n");
    161159       
    162160#ifdef CONFIG_KCONSOLE
     
    170168                        thread_ready(thread);
    171169                else
    172                         log(LF_OTHER, LVL_ERROR,
    173                             "Unable to create kconsole thread");
     170                        printf("Unable to create kconsole thread\n");
    174171        }
    175172#endif /* CONFIG_KCONSOLE */
     
    213210        for (i = 0; i < init.cnt; i++) {
    214211                if (init.tasks[i].paddr % FRAME_SIZE) {
    215                         log(LF_OTHER, LVL_ERROR,
    216                             "init[%zu]: Address is not frame aligned", i);
     212                        printf("init[%zu]: Address is not frame aligned\n", i);
    217213                        programs[i].task = NULL;
    218214                        continue;
     
    254250                                    CAP_IO_MANAGER | CAP_IRQ_REG);
    255251                               
    256                                 if (!ipc_phone_0) {
     252                                if (!ipc_phone_0)
    257253                                        ipc_phone_0 = &programs[i].task->answerbox;
    258                                         /*
    259                                          * Hold the first task so that the
    260                                          * ipc_phone_0 remains a valid pointer
    261                                          * even if the first task exits for
    262                                          * whatever reason.
    263                                          */
    264                                         task_hold(programs[i].task);
    265                                 }
    266254                        }
    267255                       
     
    277265                        init_rd((void *) init.tasks[i].paddr, init.tasks[i].size);
    278266                } else
    279                         log(LF_OTHER, LVL_ERROR,
    280                             "init[%zu]: Init binary load failed "
    281                             "(error %d, loader status %u)", i, rc,
     267                        printf("init[%zu]: Init binary load failed "
     268                            "(error %d, loader status %u)\n", i, rc,
    282269                            programs[i].loader_status);
    283270        }
Note: See TracChangeset for help on using the changeset viewer.