annotate kernel/src/kernel.c3 @ 359:b4ac28efcdf4

Reorganize files
author Windel Bouwman
date Fri, 14 Mar 2014 15:41:55 +0100
parents kernel/kernel.c3@818be710e13d
children 42343d189e14
rev   line source
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
1 module kernel;
292
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
2
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
3 import memory;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
4 import process;
292
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
5 import scheduler;
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
6 import arch;
355
c2ddc8a36f5e Enabled optimization
Windel Bouwman
parents: 354
diff changeset
7 import io;
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
8
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
9 // Main entry point of the kernel:
293
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
10 function void start()
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
11 {
353
b8ad45b3a573 Started with strings
Windel Bouwman
parents: 352
diff changeset
12 arch.init();
340
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents: 308
diff changeset
13
356
52492b304adf Added newline to print
Windel Bouwman
parents: 355
diff changeset
14 io.println("Welcome to lcfos!");
52492b304adf Added newline to print
Windel Bouwman
parents: 355
diff changeset
15
52492b304adf Added newline to print
Windel Bouwman
parents: 355
diff changeset
16 // io.print_int(0x1337);
357
818be710e13d Added acceptance function to burg
Windel Bouwman
parents: 356
diff changeset
17 // process.init();
301
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 296
diff changeset
18 //memory:init();
292
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
19
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 295
diff changeset
20 //Process proc = new process:Process();
292
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
21
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 295
diff changeset
22 //scheduler:queue(proc);
340
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents: 308
diff changeset
23 while(true) {}
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
24 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
25
293
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
26 function void panic()
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
27 {
308
2e7f55319858 Merged analyse into codegenerator
Windel Bouwman
parents: 301
diff changeset
28 arch.halt();
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
29 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
30