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
|
|
9 // Main entry point of the kernel:
|
293
|
10 function void start()
|
283
|
11 {
|
353
|
12 arch.init();
|
362
|
13
|
360
|
14 io.println("Welcome to lcfos!");
|
362
|
15
|
357
|
16 // process.init();
|
367
|
17 memory.init();
|
292
|
18
|
296
|
19 //Process proc = new process:Process();
|
292
|
20
|
296
|
21 //scheduler:queue(proc);
|
340
|
22 while(true) {}
|
283
|
23 }
|
|
24
|
367
|
25 // Called in total stress:
|
293
|
26 function void panic()
|
283
|
27 {
|
308
|
28 arch.halt();
|
283
|
29 }
|
|
30
|