Mercurial > lcfOS
view kernel/arch/vexpressA9.c3 @ 386:2a970e7270e2
Added repeat assembler macro
author | Windel Bouwman |
---|---|
date | Thu, 01 May 2014 17:40:59 +0200 |
parents | 6df89163e114 |
children | e07c2a9abac1 |
line wrap: on
line source
module arch; 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 void putc(int c) { var int *UART0DR; UART0DR = cast<int*>(0x10009000); // UART0 DR register *UART0DR = c; } function void halt() { while(true) {} } function int pfr0(); function int pfr1(); function int mmfr0(); // function int mpuir();