software/bios: Fix compilation without UART.

This commit is contained in:
Florent Kermarrec 2021-04-07 09:03:07 +02:00
parent 8db1a619f5
commit 6940db7730
1 changed files with 2 additions and 0 deletions

View File

@ -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("Executing booted program at 0x%08lx\n\n", addr);
printf("--============= \e[1mLiftoff!\e[0m ===============--\n"); printf("--============= \e[1mLiftoff!\e[0m ===============--\n");
#ifdef CSR_UART_BASE
uart_sync(); uart_sync();
#endif
#ifdef CONFIG_CPU_HAS_INTERRUPT #ifdef CONFIG_CPU_HAS_INTERRUPT
irq_setmask(0); irq_setmask(0);
irq_setie(0); irq_setie(0);