HomeFreeBSD

Fix interrupt clear in pl011 uart receive function

Description

Fix interrupt clear in pl011 uart receive function

Clear the interrupt state before reading the input char from the
input FIFO. In the current code there is a window between the read
to the data register and the write to the the ICR, during which an
input char will not cause an interrupt.

This fixes the issue by which the serial port input on QEMU freezes
when using the emulated pl011 serial port.

Details

Provenance
jchandraAuthored on
Parents
rS309275: MFC r309006: remove unnecessary vm includes from setproctitle
Branches
Unknown
Tags
Unknown