Mercurial > lcfOS
annotate kernel/kernel.c3 @ 294:e89cca5779b0
Merge
author | Windel Bouwman |
---|---|
date | Thu, 28 Nov 2013 20:39:56 +0100 |
parents | 6aa721e7b10b |
children | 917eab04b8b7 |
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 { |
292 | 11 process.Init(); |
12 memory.Init(); | |
13 | |
14 | |
15 Process proc = new process.Process(); | |
16 | |
17 scheduler.queue(proc); | |
283 | 18 } |
19 | |
20 | |
293 | 21 function void panic() |
283 | 22 { |
292 | 23 arch.halt(); |
283 | 24 } |
25 |