annotate kernel/kernel.c3 @ 288:a747a45dcd78

Various styling work
author Windel Bouwman
date Thu, 21 Nov 2013 14:26:13 +0100
parents c9781c73e7e2
children 534b94b40aa8
rev   line source
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
1 module kernel;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
2 import memory;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
3 import process;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
4
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
5 // Main entry point of the kernel:
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
6 func start()
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
7 {
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
8 process.Init();
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
9 memory.Init();
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
10 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
11
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
12
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
13 func panic()
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
14 {
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
15 while(true)
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
16 {
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
17 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
18 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
19