diff kernel/src/kernel.c3 @ 362:c05ab629976a

Added CPUID for arm
author Windel Bouwman
date Sat, 15 Mar 2014 10:56:34 +0100
parents 42343d189e14
children 396e5cefba13
line wrap: on
line diff
--- a/kernel/src/kernel.c3	Fri Mar 14 16:18:54 2014 +0100
+++ b/kernel/src/kernel.c3	Sat Mar 15 10:56:34 2014 +0100
@@ -10,16 +10,24 @@
 function void start()
 {
     arch.init();
+
     io.println("Welcome to lcfos!");
+
     io.print_int(0x1337);
     io.print_int(0x1338);
     io.print2("Test: ", 0x13);
 
     var int a;
-    for (a = 0; a < 10; a = a + 1)
+    for (a = 0; a < 2; a = a + 1)
     {
-      io.print2("a = ", a);
+      //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();