view kernel/src/kernel.c3 @ 360:42343d189e14

Bugfix in for loop
author Windel Bouwman
date Fri, 14 Mar 2014 16:11:32 +0100
parents b4ac28efcdf4
children c05ab629976a
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 < 10; a = a + 1)
    {
      io.print2("a = ", a);
    }
    // process.init();
    //memory:init();

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

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

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