view kernel/kernel.c3 @ 340:c7cc54c0dfdf devel

Test featurebranch
author Windel Bouwman
date Sun, 23 Feb 2014 16:24:01 +0100
parents 2e7f55319858
children 899ae3aea803
line wrap: on
line source

module kernel;

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

// Main entry point of the kernel:
function void start()
{
   var int* UART0DR;
   UART0DR = cast<int*>(0x10009000); // UART0 Data register
   *UART0DR = 72;

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


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

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


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