diff options
author | Andrew Waterman <andrew@sifive.com> | 2022-02-17 15:34:27 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2022-02-17 15:34:27 -0800 |
commit | 0d3339c73e8401a6dcfee2f0b97f6f52c81181c6 (patch) | |
tree | 132a1f4a44db109c554ac473f7850308f3a687f4 /pk/syscall.c | |
parent | bc6e624fe1167b088af5694bb74eb68d61dde8ba (diff) | |
download | pk-0d3339c73e8401a6dcfee2f0b97f6f52c81181c6.zip pk-0d3339c73e8401a6dcfee2f0b97f6f52c81181c6.tar.gz pk-0d3339c73e8401a6dcfee2f0b97f6f52c81181c6.tar.bz2 |
Fix sbi_console_getchar return value if no UART is present
The UART drivers all return -1 if no character is present, and so that's
what we should do if there's no UART at all.
See discussion on https://github.com/riscv-non-isa/riscv-sbi-doc/issues/82
Diffstat (limited to 'pk/syscall.c')
0 files changed, 0 insertions, 0 deletions