bsps/shared/serial/pl011: Avoid unnecessary reads

Avoid reading from the pl011 data register unnecessarily. There is no
need to preserve the contents of this register as it is not normal
memory. This unnecessary read causes console spam when running under the
Xen hypervisor when the read FIFO is empty since the read is not
expected.
This commit is contained in:
Kinsey Moore
2025-06-17 15:11:41 -05:00
committed by Joel Sherrill
parent 5e0a68d3ab
commit c26259ee2e

View File

@@ -38,7 +38,7 @@ static inline void arm_pl011_write_char(
const char ch
)
{
regs_base->uartdr = PL011_UARTDR_DATA_SET(regs_base->uartdr, ch);
regs_base->uartdr = PL011_UARTDR_DATA(ch);
}
static inline bool arm_pl011_is_rxfifo_empty(volatile pl011_base *regs_base)