annotate kernel/arch/vexpressA9.c3 @ 352:899ae3aea803

First kernel run for vexpressA9
author Windel Bouwman
date Sun, 09 Mar 2014 11:55:55 +0100
parents
children b8ad45b3a573
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 {
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
5 var int *UART0DR;
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
6 UART0DR = cast<int*>(0x10009000); // UART0 DR register
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
7 *UART0DR = 0x65;
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
8 }
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
9
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
10 function void halt()
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
11 {
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
12 }
899ae3aea803 First kernel run for vexpressA9
Windel Bouwman
parents:
diff changeset
13