Mercurial > lcfOS
diff kernel/kernel.c3 @ 292:534b94b40aa8
Fixup reorganize
author | Windel Bouwman |
---|---|
date | Wed, 27 Nov 2013 08:06:42 +0100 |
parents | c9781c73e7e2 |
children | 6aa721e7b10b |
line wrap: on
line diff
--- a/kernel/kernel.c3 Sun Nov 24 11:24:15 2013 +0100 +++ b/kernel/kernel.c3 Wed Nov 27 08:06:42 2013 +0100 @@ -1,19 +1,25 @@ module kernel; + import memory; import process; +import scheduler; +import arch; // Main entry point of the kernel: func start() { - process.Init(); - memory.Init(); + process.Init(); + memory.Init(); + + + Process proc = new process.Process(); + + scheduler.queue(proc); } func panic() { - while(true) - { - } + arch.halt(); }