Mercurial > lcfOS
annotate kernel/arch/vexpressA9.c3 @ 362:c05ab629976a
Added CPUID for arm
author | Windel Bouwman |
---|---|
date | Sat, 15 Mar 2014 10:56:34 +0100 |
parents | 5477e499b039 |
children | 577ed7fb3fe4 |
rev | line source |
---|---|
352 | 1 module arch; |
2 | |
362 | 3 |
352 | 4 function void init() |
5 { | |
354 | 6 // putc(65) |
353 | 7 } |
8 | |
362 | 9 function int pfr0(); |
10 function int pfr1(); | |
11 function int mmfr0(); | |
12 function int mpuir(); | |
13 | |
353 | 14 function void putc(int c) |
15 { | |
352 | 16 var int *UART0DR; |
17 UART0DR = cast<int*>(0x10009000); // UART0 DR register | |
353 | 18 *UART0DR = c; |
352 | 19 } |
20 | |
21 function void halt() | |
22 { | |
23 } | |
24 |