annotate kernel/kernel.c3 @ 294:e89cca5779b0

Merge
author Windel Bouwman
date Thu, 28 Nov 2013 20:39:56 +0100
parents 6aa721e7b10b
children 917eab04b8b7
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 {
292
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
11 process.Init();
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
12 memory.Init();
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
13
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
14
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
15 Process proc = new process.Process();
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
diff changeset
16
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
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 {
292
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 283
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