annotate kernel/kernel.c3 @ 305:0615b5308710

Updated docs
author Windel Bouwman
date Fri, 06 Dec 2013 13:50:38 +0100
parents 6753763d3bec
children 2e7f55319858
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;
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
7
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
8 // Main entry point of the kernel:
293
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
9 function void start()
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
10 {
295
917eab04b8b7 Added disasm
Windel Bouwman
parents: 293
diff changeset
11 process:init();
301
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 296
diff changeset
12 //memory:init();
292
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
13
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
14
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 295
diff changeset
15 //Process proc = new process:Process();
292
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
16
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 295
diff changeset
17 //scheduler:queue(proc);
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
18 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
19
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
20
293
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 292
diff changeset
21 function void panic()
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
22 {
295
917eab04b8b7 Added disasm
Windel Bouwman
parents: 293
diff changeset
23 arch:halt();
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
24 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
25