Ignore:
File:
1 edited

Legend:

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

    r6eef3c4 r91db0280  
    6262#include <console/kconsole.h>
    6363#include <console/console.h>
     64#include <log.h>
    6465#include <cpu.h>
    6566#include <align.h>
     
    8990#include <lib/ra.h>
    9091
     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);
     109
    91110/** Global configuration structure. */
    92111config_t config = {
     
    263282        ipc_init();
    264283        event_init();
    265         klog_init();
     284        kio_init();
     285        log_init();
    266286        stats_init();
    267287       
Note: See TracChangeset for help on using the changeset viewer.