view kernel/src/kernel.c3 @ 369:5333318ee33d

Python 3.2 compatible issues
author Windel Bouwman
date Fri, 21 Mar 2014 11:54:50 +0100
parents 577ed7fb3fe4
children 6df89163e114
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!");

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

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

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

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