diff kernel/kernel.c3 @ 355:c2ddc8a36f5e

Enabled optimization
author Windel Bouwman
date Fri, 14 Mar 2014 10:30:13 +0100
parents 5477e499b039
children 52492b304adf
line wrap: on
line diff
--- a/kernel/kernel.c3	Thu Mar 13 18:59:06 2014 +0100
+++ b/kernel/kernel.c3	Fri Mar 14 10:30:13 2014 +0100
@@ -4,13 +4,14 @@
 import process;
 import scheduler;
 import arch;
+import io;
 
 // Main entry point of the kernel:
 function void start()
 {
     arch.init();
 
-    print("Welcome to lcfos!");
+    io.print("Welcome to lcfos!");
     process.init();
     //memory:init();
 
@@ -21,18 +22,6 @@
     while(true) {}
 }
 
-function void print(string txt)
-{
-    var int i;
-    i = 0;
-
-    while (i < txt->len)
-    {
-        arch.putc(cast<int>(txt->txt[i]));
-        i = i + 1;
-    }
-}
-
 function void panic()
 {
     arch.halt();