Mercurial > lcfOS
annotate kernel/kernel.c3 @ 352:899ae3aea803
First kernel run for vexpressA9
author | Windel Bouwman |
---|---|
date | Sun, 09 Mar 2014 11:55:55 +0100 |
parents | c7cc54c0dfdf |
children | b8ad45b3a573 |
rev | line source |
---|---|
283 | 1 module kernel; |
292 | 2 |
283 | 3 import memory; |
4 import process; | |
292 | 5 import scheduler; |
6 import arch; | |
283 | 7 |
8 // Main entry point of the kernel: | |
293 | 9 function void start() |
283 | 10 { |
352 | 11 arch.init() |
340 | 12 |
308 | 13 process.init(); |
301 | 14 //memory:init(); |
292 | 15 |
16 | |
296 | 17 //Process proc = new process:Process(); |
292 | 18 |
296 | 19 //scheduler:queue(proc); |
340 | 20 while(true) {} |
283 | 21 } |
22 | |
23 | |
293 | 24 function void panic() |
283 | 25 { |
308 | 26 arch.halt(); |
283 | 27 } |
28 |