riscv/qemu: guard u16550 uses
This guards the uses for u16550 serial initialization, just in case that no u16550 is configured. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
parent
3fecf46097
commit
9e59b0b43b
@ -184,10 +184,14 @@ cpux:
|
||||
|
||||
void riscv_earlyserialinit(void)
|
||||
{
|
||||
#ifdef CONFIG_16550_UART
|
||||
u16550_earlyserialinit();
|
||||
#endif
|
||||
}
|
||||
|
||||
void riscv_serialinit(void)
|
||||
{
|
||||
#ifdef CONFIG_16550_UART
|
||||
u16550_serialinit();
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user