Files
rtems/bsps/mips
Sebastian Huber 1d8ee20742 bsps/mips/malta: Do not block in BSP_poll_char
BSP_com_inch() polled the device in a loop until it read a character.
BSP_poll_char references that function.

The specification of BSP_poll_char states the opposite.  A referenced
function dequeues the least recently received character of the device.
Where the device holds none, the function returns minus one at once.

ts-validation-io-kernel calls getchark() while the device holds no
character.  The loop never ended, so the suite made no progress on
mips/malta.  It printed nothing and the runner ended it on a timeout.

Return the result of the polled read.  ns16550_inch_polled() already
gives minus one for an empty device.

Update #5767.

Assisted-by: Claude:claude-opus-5 claude-code
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-09-21 20:02:55 -05:00
..