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();
|
340
|
13
|
356
|
14 io.println("Welcome to lcfos!");
|
|
15
|
|
16 // io.print_int(0x1337);
|
357
|
17 // process.init();
|
301
|
18 //memory:init();
|
292
|
19
|
296
|
20 //Process proc = new process:Process();
|
292
|
21
|
296
|
22 //scheduler:queue(proc);
|
340
|
23 while(true) {}
|
283
|
24 }
|
|
25
|
293
|
26 function void panic()
|
283
|
27 {
|
308
|
28 arch.halt();
|
283
|
29 }
|
|
30
|