Mercurial > lcfOS
diff kernel/arch/qemu_vexpress/archmem.c3 @ 367:577ed7fb3fe4
Try to make thumb work again
author | Windel Bouwman |
---|---|
date | Fri, 21 Mar 2014 10:27:57 +0100 |
parents | |
children | 6df89163e114 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/kernel/arch/qemu_vexpress/archmem.c3 Fri Mar 21 10:27:57 2014 +0100 @@ -0,0 +1,19 @@ +module archmem; +import io; + +function void init() +{ + // putc(65) + io.print2("PFR0 = ", pfr0()); + io.print2("PFR1 = ", pfr1()); + io.print2("MMFR0 = ", mmfr0()); + + // This below is not compatible with all qemu versions: + // io.print2("MPUIR = ", arch.mpuir()); +} + +function int pfr0(); +function int pfr1(); +function int mmfr0(); +// function int mpuir(); +