Ignore:
File:
1 edited

Legend:

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

    r3b3faf51 r9e40355e  
    6262#include <console/kconsole.h>
    6363#include <console/console.h>
    64 #include <log.h>
    6564#include <cpu.h>
    6665#include <align.h>
     
    7675#include <synch/waitq.h>
    7776#include <synch/futex.h>
    78 #include <synch/workqueue.h>
    79 #include <smp/smp_call.h>
    8077#include <arch/arch.h>
    8178#include <arch.h>
     
    116113        .physmem_end = 0
    117114};
    118 
    119 /** Boot arguments. */
    120 char bargs[CONFIG_BOOT_ARGUMENTS_BUFLEN] = {};
    121115
    122116/** Initial user-space tasks */
     
    241235         * Memory management subsystems initialization.
    242236         */
    243         ARCH_OP(pre_mm_init);
     237        arch_pre_mm_init();
    244238        km_identity_init();
    245239        frame_init();
     
    253247        km_non_identity_init();
    254248        ddi_init();
    255         ARCH_OP(post_mm_init);
     249        arch_post_mm_init();
    256250        reserve_init();
    257         ARCH_OP(pre_smp_init);
     251        arch_pre_smp_init();
    258252        smp_init();
    259253       
     
    268262       
    269263        cpu_init();
     264       
    270265        calibrate_delay_loop();
    271         ARCH_OP(post_cpu_init);
    272 
    273         smp_call_init();
    274         workq_global_init();
    275266        clock_counter_init();
    276267        timeout_init();
     
    279270        thread_init();
    280271        futex_init();
    281 
    282         sysinfo_set_item_data("boot_args", NULL, bargs, str_size(bargs) + 1);
    283 
     272       
    284273        if (init.cnt > 0) {
    285274                size_t i;
     
    292281        ipc_init();
    293282        event_init();
    294         kio_init();
    295         log_init();
     283        klog_init();
    296284        stats_init();
    297285       
     
    346334        the_initialize(THE);
    347335       
    348         ARCH_OP(pre_mm_init);
     336        arch_pre_mm_init();
    349337        frame_init();
    350338        page_init();
    351339        tlb_init();
    352         ARCH_OP(post_mm_init);
     340        arch_post_mm_init();
    353341       
    354342        cpu_init();
    355343        calibrate_delay_loop();
    356         ARCH_OP(post_cpu_init);
     344        arch_post_cpu_init();
    357345       
    358346        the_copy(THE, (the_t *) CPU->stack);
     
    377365void main_ap_separated_stack(void)
    378366{
    379         smp_call_init();
    380        
    381367        /*
    382368         * Configure timeouts for this cpu.
Note: See TracChangeset for help on using the changeset viewer.