Mercurial > lcfOS
annotate experiments/qemu_vexpress_a9/main.c @ 388:e07c2a9abac1
Enabled paging in kernel
author | Windel Bouwman |
---|---|
date | Fri, 02 May 2014 14:51:46 +0200 |
parents | 34ac19044b8a |
children |
rev | line source |
---|---|
340 | 1 |
2 | |
387 | 3 volatile unsigned int * const UART0_DR = (unsigned int *)0x109000; |
340 | 4 |
5 | |
6 void print_uart0(const char *s) | |
7 { | |
8 while(*s != '\0') { /* Loop until end of string */ | |
9 *UART0_DR = (unsigned int)(*s); /* Transmit char */ | |
10 s++; /* Next char */ | |
11 } | |
12 } | |
13 | |
14 | |
15 void start(void) | |
16 { | |
17 print_uart0("Hello world\n"); | |
18 for (;;); | |
19 } | |
20 | |
21 |