annotate kernel/kernel.c3 @ 326:2fa27c44e3c9

Changed hasbang
author Windel Bouwman
date Sat, 01 Feb 2014 16:54:33 +0100
parents 2e7f55319858
children c7cc54c0dfdf
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 {
308
2e7f55319858 Merged analyse into codegenerator
Windel Bouwman
parents: 301
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 {
308
2e7f55319858 Merged analyse into codegenerator
Windel Bouwman
parents: 301
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