From c27ee2215cfe9812411e16314225d9f11fe4fd1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20Sch=C3=B6lhorn?= Date: Sat, 19 May 2018 19:04:11 +0200 Subject: [PATCH] Print everything send over serial to the terminal --- bootrom/sdboot/kprintf.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootrom/sdboot/kprintf.h b/bootrom/sdboot/kprintf.h index 26cc805..1b36bed 100644 --- a/bootrom/sdboot/kprintf.h +++ b/bootrom/sdboot/kprintf.h @@ -33,6 +33,9 @@ static inline void kputc(char c) while ((int32_t)(*tx) < 0); *tx = c; #endif + volatile uint32_t *term = (void *) 0x64003000; // Terminal (32 bit) + while ((int32_t)(*term) < 0); + *term = c; } extern void kputs(const char *);