diff kernel/src/kernel.c3 @ 367:577ed7fb3fe4

Try to make thumb work again
author Windel Bouwman
date Fri, 21 Mar 2014 10:27:57 +0100
parents 98ff43cfdd36
children 6df89163e114
line wrap: on
line diff
--- a/kernel/src/kernel.c3	Fri Mar 21 09:43:01 2014 +0100
+++ b/kernel/src/kernel.c3	Fri Mar 21 10:27:57 2014 +0100
@@ -6,46 +6,15 @@
 import arch;
 import io;
 
-var int G;
-
-function void do()
-{
-    G = G + 1;
-    io.print2("G = ", G);
-}
-
 // Main entry point of the kernel:
 function void start()
 {
-    G = 0;
     arch.init();
 
     io.println("Welcome to lcfos!");
 
-    do();
-    do();
-    do();
-    io.println("Welcome 2!");
-    do();
-    do();
-
-    io.print_int(0x1337);
-    io.print_int(cast<int>(&G));
-    //io.print2("Test: ", 0x13);
-
-    var int a;
-    for (a = 0; a < 2; a = a + 1)
-    {
-      io.print2("a = ", a);
-    }
-
-    io.print2("PFR0 = ", arch.pfr0());
-    io.print2("PFR1 = ", arch.pfr1());
-    io.print2("MMFR0 = ", arch.mmfr0());
-    // io.print2("MPUIR = ", arch.mpuir());
-
     // process.init();
-    //memory:init();
+    memory.init();
 
     //Process proc = new process:Process();
 
@@ -53,6 +22,7 @@
     while(true) {}
 }
 
+// Called in total stress:
 function void panic()
 {
     arch.halt();