view kernel/kernel.c3 @ 354:5477e499b039

Added some sort of string functionality
author Windel Bouwman
date Thu, 13 Mar 2014 18:59:06 +0100
parents b8ad45b3a573
children c2ddc8a36f5e
line wrap: on
line source

module kernel;

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

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

    print("Welcome to lcfos!");
    process.init();
    //memory:init();


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

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

function void print(string txt)
{
    var int i;
    i = 0;

    while (i < txt->len)
    {
        arch.putc(cast<int>(txt->txt[i]));
        i = i + 1;
    }
}

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