view kernel/kernel.c3 @ 350:2b02bd286fe9

Fixed A9 hello worle
author Windel Bouwman
date Sat, 08 Mar 2014 16:29:03 +0100
parents c7cc54c0dfdf
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();
}