view kernel/src/kernel.c3 @ 362:c05ab629976a

Added CPUID for arm
author Windel Bouwman
date Sat, 15 Mar 2014 10:56:34 +0100
parents 42343d189e14
children 396e5cefba13
line wrap: on
line source

module kernel;

import memory;
import process;
import scheduler;
import arch;
import io;

// Main entry point of the kernel:
function void start()
{
    arch.init();

    io.println("Welcome to lcfos!");

    io.print_int(0x1337);
    io.print_int(0x1338);
    io.print2("Test: ", 0x13);

    var int a;
    for (a = 0; a < 2; a = a + 1)
    {
      //io.print2("a = ", a);
    }

    io.print2("PFR0 = ", arch.pfr0());
    io.print2("PFR1 = ", arch.pfr1());
    io.print2("MMFR0 = ", arch.mmfr0());
    io.print2("MPUIR = ", arch.mpuir());

    // process.init();
    //memory:init();

    //Process proc = new process:Process();

    //scheduler:queue(proc);
    while(true) {}
}

function void panic()
{
    arch.halt();
}