annotate kernel/arch/vexpressA9.c3 @ 377:9667d78ba79e

Switched to xml for project description
author Windel Bouwman
date Fri, 11 Apr 2014 15:47:50 +0200
parents 577ed7fb3fe4
children 6df89163e114
rev   line source
352
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
1 module arch;
367
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents: 362
diff changeset
2 import io;
352
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
3
362
c05ab629976a Added CPUID for arm
Windel Bouwman
parents: 354
diff changeset
4
352
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
5 function void init()
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
6 {
354
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents: 353
diff changeset
7 // putc(65)
353
b8ad45b3a573 Started with strings
Windel Bouwman
parents: 352
diff changeset
8 }
b8ad45b3a573 Started with strings
Windel Bouwman
parents: 352
diff changeset
9
b8ad45b3a573 Started with strings
Windel Bouwman
parents: 352
diff changeset
10 function void putc(int c)
b8ad45b3a573 Started with strings
Windel Bouwman
parents: 352
diff changeset
11 {
352
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
12 var int *UART0DR;
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
13 UART0DR = cast<int*>(0x10009000); // UART0 DR register
353
b8ad45b3a573 Started with strings
Windel Bouwman
parents: 352
diff changeset
14 *UART0DR = c;
352
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
15 }
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
16
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
17 function void halt()
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
18 {
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
19 }
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
20