Mercurial > lcfOS
comparison kernel/kernel.c3 @ 292:534b94b40aa8
Fixup reorganize
author | Windel Bouwman |
---|---|
date | Wed, 27 Nov 2013 08:06:42 +0100 |
parents | c9781c73e7e2 |
children | 6aa721e7b10b |
comparison
equal
deleted
inserted
replaced
290:7b38782ed496 | 292:534b94b40aa8 |
---|---|
1 module kernel; | 1 module kernel; |
2 | |
2 import memory; | 3 import memory; |
3 import process; | 4 import process; |
5 import scheduler; | |
6 import arch; | |
4 | 7 |
5 // Main entry point of the kernel: | 8 // Main entry point of the kernel: |
6 func start() | 9 func start() |
7 { | 10 { |
8 process.Init(); | 11 process.Init(); |
9 memory.Init(); | 12 memory.Init(); |
13 | |
14 | |
15 Process proc = new process.Process(); | |
16 | |
17 scheduler.queue(proc); | |
10 } | 18 } |
11 | 19 |
12 | 20 |
13 func panic() | 21 func panic() |
14 { | 22 { |
15 while(true) | 23 arch.halt(); |
16 { | |
17 } | |
18 } | 24 } |
19 | 25 |