]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[riscv] Inhibit SBI console when a serial console is active
authorMichael Brown <mcb30@ipxe.org>
Mon, 23 Jun 2025 14:07:07 +0000 (15:07 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 23 Jun 2025 14:07:07 +0000 (15:07 +0100)
commitd1823eb67740ce46ebc08226484447bfd463fe2c
treecc212f0d0d32706e5289028d266ca3126ef27b69
parent25fa01822b7864ace7abe792e81662ea291e87fa
[riscv] Inhibit SBI console when a serial console is active

When a native serial driver is enabled for the system console device
specified via "/chosen/stdout-path", it is very likely that this will
correspond to the same physical serial port used for the SBI debug
console.

Inhibit input and output via the SBI console whenever a serial console
is active, to avoid duplicated output characters and unpredictable
input behaviour.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/riscv/interface/sbi/sbi_console.c