Ignore:
File:
1 edited

Legend:

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

    r91db0280 r8a64e81e  
    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>
     77#include <synch/workqueue.h>
     78#include <smp/smp_call.h>
    7879#include <arch/arch.h>
    7980#include <arch.h>
     
    8990#include <sysinfo/stats.h>
    9091#include <lib/ra.h>
    91 
    92 /* Ensure [u]int*_t types are of correct size.
    93  *
    94  * Probably, this is not the best place for such tests
    95  * but this file is compiled on all architectures.
    96  */
    97 #define CHECK_INT_TYPE_(signness, size) \
    98         STATIC_ASSERT_VERBOSE(sizeof(signness##size##_t) * 8 == size, \
    99             #signness #size "_t does not have " #size " bits");
    100 
    101 #define CHECK_INT_TYPE(size) \
    102         CHECK_INT_TYPE_(int, size); \
    103         CHECK_INT_TYPE_(uint, size)
    104 
    105 CHECK_INT_TYPE(8);
    106 CHECK_INT_TYPE(16);
    107 CHECK_INT_TYPE(32);
    108 CHECK_INT_TYPE(64);
    10992
    11093/** Global configuration structure. */
     
    263246       
    264247        cpu_init();
    265        
    266248        calibrate_delay_loop();
     249        arch_post_cpu_init();
     250
     251        smp_call_init();
     252        workq_global_init();
    267253        clock_counter_init();
    268254        timeout_init();
     
    282268        ipc_init();
    283269        event_init();
    284         kio_init();
    285         log_init();
     270        klog_init();
    286271        stats_init();
    287272       
     
    367352void main_ap_separated_stack(void)
    368353{
     354        smp_call_init();
     355       
    369356        /*
    370357         * Configure timeouts for this cpu.
Note: See TracChangeset for help on using the changeset viewer.