annotate kernel/arch/vexpressA9.c3 @ 353:b8ad45b3a573

Started with strings
author Windel Bouwman
date Sun, 09 Mar 2014 18:49:10 +0100
parents 899ae3aea803
children 5477e499b039
rev   line source
352
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
1 module arch;
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
2
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
3 function void init()
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
4 {
353
b8ad45b3a573 Started with strings
Windel Bouwman
parents: 352
diff changeset
5 putc(0x65)
b8ad45b3a573 Started with strings
Windel Bouwman
parents: 352
diff changeset
6 }
b8ad45b3a573 Started with strings
Windel Bouwman
parents: 352
diff changeset
7
b8ad45b3a573 Started with strings
Windel Bouwman
parents: 352
diff changeset
8 function void putc(int c)
b8ad45b3a573 Started with strings
Windel Bouwman
parents: 352
diff changeset
9 {
352
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
10 var int *UART0DR;
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
11 UART0DR = cast<int*>(0x10009000); // UART0 DR register
353
b8ad45b3a573 Started with strings
Windel Bouwman
parents: 352
diff changeset
12 *UART0DR = c;
352
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
13 }
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
14
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
15 function void halt()
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
16 {
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
17 }
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
18