annotate experiments/qemu_vexpress_a9/main.c @ 389:2ec730e45ea1

Added check for recursive struct
author Windel Bouwman
date Fri, 16 May 2014 12:29:31 +0200
parents 34ac19044b8a
children
rev   line source
340
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
1
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
2
387
34ac19044b8a Hello world with paging in emulator
Windel Bouwman
parents: 386
diff changeset
3 volatile unsigned int * const UART0_DR = (unsigned int *)0x109000;
340
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
4
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
5
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
6 void print_uart0(const char *s)
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
7 {
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
8 while(*s != '\0') { /* Loop until end of string */
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
9 *UART0_DR = (unsigned int)(*s); /* Transmit char */
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
10 s++; /* Next char */
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
11 }
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
12 }
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
13
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
14
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
15 void start(void)
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
16 {
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
17 print_uart0("Hello world\n");
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
18 for (;;);
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
19 }
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
20
c7cc54c0dfdf Test featurebranch
Windel Bouwman
parents:
diff changeset
21