comparison 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
comparison
equal deleted inserted replaced
361:614a7f6d4d4d 362:c05ab629976a
8 8
9 // Main entry point of the kernel: 9 // Main entry point of the kernel:
10 function void start() 10 function void start()
11 { 11 {
12 arch.init(); 12 arch.init();
13
13 io.println("Welcome to lcfos!"); 14 io.println("Welcome to lcfos!");
15
14 io.print_int(0x1337); 16 io.print_int(0x1337);
15 io.print_int(0x1338); 17 io.print_int(0x1338);
16 io.print2("Test: ", 0x13); 18 io.print2("Test: ", 0x13);
17 19
18 var int a; 20 var int a;
19 for (a = 0; a < 10; a = a + 1) 21 for (a = 0; a < 2; a = a + 1)
20 { 22 {
21 io.print2("a = ", a); 23 //io.print2("a = ", a);
22 } 24 }
25
26 io.print2("PFR0 = ", arch.pfr0());
27 io.print2("PFR1 = ", arch.pfr1());
28 io.print2("MMFR0 = ", arch.mmfr0());
29 io.print2("MPUIR = ", arch.mpuir());
30
23 // process.init(); 31 // process.init();
24 //memory:init(); 32 //memory:init();
25 33
26 //Process proc = new process:Process(); 34 //Process proc = new process:Process();
27 35