Ignore:
File:
1 edited

Legend:

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

    r36df4109 ra4e23f8c  
    5959#include <mm/km.h>
    6060#include <print.h>
    61 #include <log.h>
    6261#include <memstr.h>
    6362#include <console/console.h>
     
    7978#include <synch/waitq.h>
    8079#include <synch/spinlock.h>
    81 #include <synch/workqueue.h>
    82 #include <synch/rcu.h>
    8380
    8481#define ALIVE_CHARS  4
     
    107104         */
    108105        thread_detach(THREAD);
    109 
     106       
    110107        interrupts_disable();
    111        
    112         /* Start processing RCU callbacks. RCU is fully functional afterwards. */
    113         rcu_kinit_init();
    114        
    115         /*
    116          * Start processing work queue items. Some may have been queued during boot.
    117          */
    118         workq_global_worker_init();
    119108       
    120109#ifdef CONFIG_SMP
     
    151140                                thread_ready(thread);
    152141                        } else
    153                                 log(LF_OTHER, LVL_ERROR,
    154                                     "Unable to create kcpulb thread for cpu%u", i);
     142                                printf("Unable to create kcpulb thread for cpu%u\n", i);
    155143                }
    156144        }
     
    160148         * At this point SMP, if present, is configured.
    161149         */
    162         ARCH_OP(post_smp_init);
     150        arch_post_smp_init();
    163151       
    164152        /* Start thread computing system load */
     
    168156                thread_ready(thread);
    169157        else
    170                 log(LF_OTHER, LVL_ERROR, "Unable to create kload thread");
     158                printf("Unable to create kload thread\n");
    171159       
    172160#ifdef CONFIG_KCONSOLE
     
    180168                        thread_ready(thread);
    181169                else
    182                         log(LF_OTHER, LVL_ERROR,
    183                             "Unable to create kconsole thread");
     170                        printf("Unable to create kconsole thread\n");
    184171        }
    185172#endif /* CONFIG_KCONSOLE */
     
    223210        for (i = 0; i < init.cnt; i++) {
    224211                if (init.tasks[i].paddr % FRAME_SIZE) {
    225                         log(LF_OTHER, LVL_ERROR,
    226                             "init[%zu]: Address is not frame aligned", i);
     212                        printf("init[%zu]: Address is not frame aligned\n", i);
    227213                        programs[i].task = NULL;
    228214                        continue;
     
    240226                        name = "<unknown>";
    241227               
    242                 STATIC_ASSERT(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN);
     228                ASSERT(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN);
    243229                str_cpy(namebuf, TASK_NAME_BUFLEN, INIT_PREFIX);
    244230                str_cpy(namebuf + INIT_PREFIX_LEN,
     
    287273                        init_rd((void *) init.tasks[i].paddr, init.tasks[i].size);
    288274                } else
    289                         log(LF_OTHER, LVL_ERROR,
    290                             "init[%zu]: Init binary load failed "
    291                             "(error %d, loader status %u)", i, rc,
     275                        printf("init[%zu]: Init binary load failed "
     276                            "(error %d, loader status %u)\n", i, rc,
    292277                            programs[i].loader_status);
    293278        }
Note: See TracChangeset for help on using the changeset viewer.