From 6940db77305946002edaa6f70788fce0f63ebed0 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 7 Apr 2021 09:03:07 +0200 Subject: [PATCH] software/bios: Fix compilation without UART. --- litex/soc/software/bios/boot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index 501b8a4d5..8d511bca3 100644 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -52,7 +52,9 @@ void __attribute__((noreturn)) boot(unsigned long r1, unsigned long r2, unsigned { printf("Executing booted program at 0x%08lx\n\n", addr); printf("--============= \e[1mLiftoff!\e[0m ===============--\n"); +#ifdef CSR_UART_BASE uart_sync(); +#endif #ifdef CONFIG_CPU_HAS_INTERRUPT irq_setmask(0); irq_setie(0);