283
|
1 module kernel;
|
292
|
2
|
283
|
3 import memory;
|
|
4 import process;
|
292
|
5 import scheduler;
|
|
6 import arch;
|
355
|
7 import io;
|
283
|
8
|
381
|
9
|
283
|
10 // Main entry point of the kernel:
|
293
|
11 function void start()
|
283
|
12 {
|
381
|
13 io.println("Welcome to lcfos!");
|
353
|
14 arch.init();
|
362
|
15
|
|
16
|
357
|
17 // process.init();
|
367
|
18 memory.init();
|
292
|
19
|
296
|
20 //Process proc = new process:Process();
|
292
|
21
|
296
|
22 //scheduler:queue(proc);
|
381
|
23 io.println("Kernel finished");
|
|
24 arch.halt();
|
283
|
25 }
|
|
26
|
367
|
27 // Called in total stress:
|
293
|
28 function void panic()
|
283
|
29 {
|
308
|
30 arch.halt();
|
283
|
31 }
|
|
32
|