Mercurial > lcfOS
view kernel/arch/qemu_vexpress/vexpressA9.c3 @ 410:6aa9743ed362 tip
Reflect change in c3 public modifier
author | Windel Bouwman |
---|---|
date | Mon, 23 Feb 2015 21:06:04 +0100 |
parents | ad6be5454067 |
children |
line wrap: on
line source
module arch; import io; public function void init() { 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()); } public function void putc(int c) { var int *UART0DR; UART0DR = cast<int*>(0x109000); // UART0 DR register when remapped at 1MB *UART0DR = c; } public function void halt() { while(true) { } } // Functions implemented in assembly: public function byte* get_image_address(); function int pfr0(); function int pfr1(); function int mmfr0(); // function int mpuir();