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
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
1 module archmem;
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
2 import io;
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
3
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
4 function void init()
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
5 {
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
6 // putc(65)
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
7 io.print2("PFR0 = ", pfr0());
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
8 io.print2("PFR1 = ", pfr1());
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
9 io.print2("MMFR0 = ", mmfr0());
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
10
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
11 // This below is not compatible with all qemu versions:
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
12 // io.print2("MPUIR = ", arch.mpuir());
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
13 }
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
14
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
15 function int pfr0();
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
16 function int pfr1();
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
17 function int mmfr0();
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
18 // function int mpuir();
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents:
diff changeset
19