comparison kernel/arch/qemu_vexpress/vexpressA9.c3 @ 389:2ec730e45ea1

Added check for recursive struct
author Windel Bouwman
date Fri, 16 May 2014 12:29:31 +0200
parents kernel/arch/vexpressA9.c3@e07c2a9abac1
children 0fb6633c42f6
comparison
equal deleted inserted replaced
388:e07c2a9abac1 389:2ec730e45ea1
1 module arch;
2 import io;
3
4
5 function void init()
6 {
7 // putc(65)
8 io.print2("PFR0 = ", pfr0());
9 io.print2("PFR1 = ", pfr1());
10 io.print2("MMFR0 = ", mmfr0());
11
12 // This below is not compatible with all qemu versions:
13 // io.print2("MPUIR = ", arch.mpuir());
14 }
15
16 function void putc(int c)
17 {
18 var int *UART0DR;
19 UART0DR = cast<int*>(0x109000); // UART0 DR register when remapped at 1MB
20 *UART0DR = c;
21 }
22
23 function void halt()
24 {
25 while(true) {}
26 }
27
28 function int pfr0();
29 function int pfr1();
30 function int mmfr0();
31 // function int mpuir();
32