Browse Source

start_kernel.c: Use Raspberry Pi's mini_UART for print()

Aaron Lindsay 7 years ago
parent
commit
925192fca1
1 changed files with 3 additions and 2 deletions
  1. 3 2
      kernel/start_kernel.c

+ 3 - 2
kernel/start_kernel.c

@@ -23,7 +23,7 @@
23 23
 #include <mmu.h>
24 24
 #include <mm.h>
25 25
 #include <print.h>
26
-#include <devices/pl011.h>
26
+#include <devices/pi_mini_uart.h>
27 27
 
28 28
 #include <devices/pl111.h>
29 29
 #include <framebuffer.h>
@@ -122,7 +122,8 @@ int main(void) {
122 122
 	mmu_reinit();
123 123
 
124 124
 	//initialize the serial console
125
-	print_init(&pl011_putc);
125
+	mini_uart_init();
126
+	print_init(&mini_uart_putc);
126 127
 
127 128
 	//setup memory
128 129
 	mm_init();