Mercurial > lcfOS
comparison kernel/kernel.c3 @ 402:0fb6633c42f6
Moved several files to logical locations
author | Windel Bouwman |
---|---|
date | Thu, 19 Feb 2015 00:13:07 +0100 |
parents | kernel/src/kernel.c3@6ae782a085e0 |
children | 9eb1fc6aad6c |
comparison
equal
deleted
inserted
replaced
401:994c00d55fd5 | 402:0fb6633c42f6 |
---|---|
1 module kernel; | |
2 | |
3 import memory; | |
4 import process; | |
5 import scheduler; | |
6 import arch; | |
7 import io; | |
8 import debug; | |
9 | |
10 // Globals: | |
11 var process.process_t* init_proc; | |
12 | |
13 | |
14 // Main entry point of the kernel: | |
15 function void start() | |
16 { | |
17 io.println("Welcome to lcfos!"); | |
18 arch.init(); | |
19 | |
20 process.init(); | |
21 memory.init(); | |
22 | |
23 init_proc = process.create(); | |
24 | |
25 // TODO: copy content into process?? | |
26 | |
27 io.print2("init address ", cast<int>(init_proc)); | |
28 | |
29 //scheduler:queue(proc); | |
30 io.println("Kernel finished"); | |
31 panic(); | |
32 } | |
33 | |
34 // Called in total stress: | |
35 function void panic() | |
36 { | |
37 arch.halt(); | |
38 } | |
39 |