aboutsummaryrefslogtreecommitdiff
path: root/riscv/ns16550.cc
AgeCommit message (Collapse)AuthorFilesLines
2023-01-11For NS16550 UART, poll stdin less oftentmpAndrew Waterman1-1/+9
On my Mac Mini, calling `poll()` on stdin takes around 10 us, and we are invoking it every 20 us or so. Reduce the frequency of polling by 16x when not actively receiving data, thereby reducing the fraction of time spent in `poll()` to a trivial amount.
2022-10-17Make PLIC/NS16550 coding style more conformantAndrew Waterman1-6/+2
2022-04-20Add ns16550 serial device emulationAnup Patel1-0/+315
The ns16550 is a widely use serial device so we add a simplified ns16550 device emulation which is good enough for Linux, OpenSBI, and hypervisors to use as console. Signed-off-by: Anup Patel <anup@brainfault.org>