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();
|
360
|
13 io.println("Welcome to lcfos!");
|
|
14 io.print_int(0x1337);
|
|
15 io.print_int(0x1338);
|
|
16 io.print2("Test: ", 0x13);
|
340
|
17
|
360
|
18 var int a;
|
|
19 for (a = 0; a < 10; a = a + 1)
|
|
20 {
|
|
21 io.print2("a = ", a);
|
|
22 }
|
357
|
23 // process.init();
|
301
|
24 //memory:init();
|
292
|
25
|
296
|
26 //Process proc = new process:Process();
|
292
|
27
|
296
|
28 //scheduler:queue(proc);
|
340
|
29 while(true) {}
|
283
|
30 }
|
|
31
|
293
|
32 function void panic()
|
283
|
33 {
|
308
|
34 arch.halt();
|
283
|
35 }
|
|
36
|