mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
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>