Mercurial > lcfOS
comparison kernel/src/kernel.c3 @ 381:6df89163e114
Fix section and ldr pseudo instruction
author | Windel Bouwman |
---|---|
date | Sat, 26 Apr 2014 17:41:56 +0200 |
parents | 577ed7fb3fe4 |
children | 6ae782a085e0 |
comparison
equal
deleted
inserted
replaced
380:67a584582aee | 381:6df89163e114 |
---|---|
4 import process; | 4 import process; |
5 import scheduler; | 5 import scheduler; |
6 import arch; | 6 import arch; |
7 import io; | 7 import io; |
8 | 8 |
9 | |
9 // Main entry point of the kernel: | 10 // Main entry point of the kernel: |
10 function void start() | 11 function void start() |
11 { | 12 { |
13 io.println("Welcome to lcfos!"); | |
12 arch.init(); | 14 arch.init(); |
13 | 15 |
14 io.println("Welcome to lcfos!"); | |
15 | 16 |
16 // process.init(); | 17 // process.init(); |
17 memory.init(); | 18 memory.init(); |
18 | 19 |
19 //Process proc = new process:Process(); | 20 //Process proc = new process:Process(); |
20 | 21 |
21 //scheduler:queue(proc); | 22 //scheduler:queue(proc); |
22 while(true) {} | 23 io.println("Kernel finished"); |
24 arch.halt(); | |
23 } | 25 } |
24 | 26 |
25 // Called in total stress: | 27 // Called in total stress: |
26 function void panic() | 28 function void panic() |
27 { | 29 { |