From bc9ee9f0acc0ec26acda4ffd8f5fdcd04a6375c5 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 11 Oct 2019 18:59:16 +0200 Subject: initialize uart in bootloader's stage2, not stage1 --- loader_stage1.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'loader_stage1.c') diff --git a/loader_stage1.c b/loader_stage1.c index 9492747..d209c15 100644 --- a/loader_stage1.c +++ b/loader_stage1.c @@ -1,6 +1,5 @@ #include #include -#include #include char *const stage2_addr = ((void*) 0x4000); @@ -15,10 +14,6 @@ extern char void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags) { - // uart_init() call to be moved to stage2... - uart_init(); - uart_puts("Hello, bootloader World!\r\n"); - // stage2 of the bootloader is a blob embedded in executable; // copy it over to it's destination place // TODO implement a memcpy() somewhere and use it instead of loops -- cgit v1.2.3