Mercurial > lcfOS
annotate kernel/arch/qemu_vexpress/archmem.c3 @ 374:72a3b646d543
Added if statement sample
author | Windel Bouwman |
---|---|
date | Fri, 21 Mar 2014 15:27:18 +0100 |
parents | 577ed7fb3fe4 |
children | 6df89163e114 |
rev | line source |
---|---|
367 | 1 module archmem; |
2 import io; | |
3 | |
4 function void init() | |
5 { | |
6 // putc(65) | |
7 io.print2("PFR0 = ", pfr0()); | |
8 io.print2("PFR1 = ", pfr1()); | |
9 io.print2("MMFR0 = ", mmfr0()); | |
10 | |
11 // This below is not compatible with all qemu versions: | |
12 // io.print2("MPUIR = ", arch.mpuir()); | |
13 } | |
14 | |
15 function int pfr0(); | |
16 function int pfr1(); | |
17 function int mmfr0(); | |
18 // function int mpuir(); | |
19 |