Ignore:
File:
1 edited

Legend:

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

    r8a64e81e r91db0280  
    6262#include <console/kconsole.h>
    6363#include <console/console.h>
     64#include <log.h>
    6465#include <cpu.h>
    6566#include <align.h>
     
    7576#include <synch/waitq.h>
    7677#include <synch/futex.h>
    77 #include <synch/workqueue.h>
    78 #include <smp/smp_call.h>
    7978#include <arch/arch.h>
    8079#include <arch.h>
     
    9089#include <sysinfo/stats.h>
    9190#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
     105CHECK_INT_TYPE(8);
     106CHECK_INT_TYPE(16);
     107CHECK_INT_TYPE(32);
     108CHECK_INT_TYPE(64);
    92109
    93110/** Global configuration structure. */
     
    246263       
    247264        cpu_init();
     265       
    248266        calibrate_delay_loop();
    249         arch_post_cpu_init();
    250 
    251         smp_call_init();
    252         workq_global_init();
    253267        clock_counter_init();
    254268        timeout_init();
     
    268282        ipc_init();
    269283        event_init();
    270         klog_init();
     284        kio_init();
     285        log_init();
    271286        stats_init();
    272287       
     
    352367void main_ap_separated_stack(void)
    353368{
    354         smp_call_init();
    355        
    356369        /*
    357370         * Configure timeouts for this cpu.
Note: See TracChangeset for help on using the changeset viewer.