comparison 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
comparison
equal deleted inserted replaced
408:ad6be5454067 410:6aa9743ed362
1 module arch; 1 module arch;
2 import io; 2 import io;
3 3
4 4
5 function void init() 5 public function void init()
6 { 6 {
7 io.print2("PFR0 = ", pfr0()); 7 io.print2("PFR0 = ", pfr0());
8 io.print2("PFR1 = ", pfr1()); 8 io.print2("PFR1 = ", pfr1());
9 io.print2("MMFR0 = ", mmfr0()); 9 io.print2("MMFR0 = ", mmfr0());
10 10
11 // This below is not compatible with all qemu versions: 11 // This below is not compatible with all qemu versions:
12 // io.print2("MPUIR = ", arch.mpuir()); 12 // io.print2("MPUIR = ", arch.mpuir());
13 } 13 }
14 14
15 function void putc(int c) 15 public function void putc(int c)
16 { 16 {
17 var int *UART0DR; 17 var int *UART0DR;
18 UART0DR = cast<int*>(0x109000); // UART0 DR register when remapped at 1MB 18 UART0DR = cast<int*>(0x109000); // UART0 DR register when remapped at 1MB
19 *UART0DR = c; 19 *UART0DR = c;
20 } 20 }
21 21
22 function void halt() 22 public function void halt()
23 { 23 {
24 while(true) 24 while(true)
25 { 25 {
26 } 26 }
27 } 27 }
28 28
29 // Functions implemented in assembly: 29 // Functions implemented in assembly:
30 function byte* get_image_address(); 30 public function byte* get_image_address();
31 function int pfr0(); 31 function int pfr0();
32 function int pfr1(); 32 function int pfr1();
33 function int mmfr0(); 33 function int mmfr0();
34 // function int mpuir(); 34 // function int mpuir();
35 35