283
|
1 module kernel;
|
292
|
2
|
283
|
3 import memory;
|
|
4 import process;
|
292
|
5 import scheduler;
|
|
6 import arch;
|
283
|
7
|
|
8 // Main entry point of the kernel:
|
293
|
9 function void start()
|
283
|
10 {
|
340
|
11 var int* UART0DR;
|
|
12 UART0DR = cast<int*>(0x10009000); // UART0 Data register
|
|
13 *UART0DR = 72;
|
|
14
|
308
|
15 process.init();
|
301
|
16 //memory:init();
|
292
|
17
|
|
18
|
296
|
19 //Process proc = new process:Process();
|
292
|
20
|
296
|
21 //scheduler:queue(proc);
|
340
|
22 while(true) {}
|
283
|
23 }
|
|
24
|
|
25
|
293
|
26 function void panic()
|
283
|
27 {
|
308
|
28 arch.halt();
|
283
|
29 }
|
|
30
|