Mercurial > lcfOS
view kernel/kernel.c3 @ 341:4d204f6f7d4e devel
Rewrite of assembler parts
author | Windel Bouwman |
---|---|
date | Fri, 28 Feb 2014 18:07:14 +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(); }