diff options
Diffstat (limited to 'src/kernel.c')
-rw-r--r-- | src/kernel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kernel.c b/src/kernel.c index a9a2d11..4296aa7 100644 --- a/src/kernel.c +++ b/src/kernel.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <mailbox.h> | ||
1 | #include <mmio.h> | 2 | #include <mmio.h> |
2 | #include <raspi.h> | 3 | #include <raspi.h> |
3 | #include <uart.h> | 4 | #include <uart.h> |
@@ -10,7 +11,9 @@ static void halt() { | |||
10 | 11 | ||
11 | void main() { | 12 | void main() { |
12 | const int raspi = raspi_init(); | 13 | const int raspi = raspi_init(); |
13 | mmio_init(raspi); | 14 | mmio_init(raspi); // Must be initialized before other peripherals. |
15 | |||
16 | mbox_init(); | ||
14 | uart_init(raspi); | 17 | uart_init(raspi); |
15 | 18 | ||
16 | uart_print("Hello world!\n"); | 19 | uart_print("Hello world!\n"); |