view kernel/src/kernel.c3 @ 382:0c44e494ef58

Made lexer more generic
author Windel Bouwman
date Sun, 27 Apr 2014 12:24:21 +0200
parents 6df89163e114
children 6ae782a085e0
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()
{
    io.println("Welcome to lcfos!");
    arch.init();


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

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

    //scheduler:queue(proc);
    io.println("Kernel finished");
    arch.halt();
}

// Called in total stress:
function void panic()
{
    arch.halt();
}