view kernel/kernel.c3 @ 353:b8ad45b3a573

Started with strings
author Windel Bouwman
date Sun, 09 Mar 2014 18:49:10 +0100
parents 899ae3aea803
children 5477e499b039
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 int strlen(string txt)
{

}

function int getchar(string txt, int index)
{
    if (index < strlen(txt))
    {
    }
}

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

    while (i < strlen(txt))
    {
        arch.putc(getchar(txt, i));
        i = i + 1;
    }
}

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