lib: utils/serial: add semihosting support

We add RISC-V semihosting based serial console for JTAG based early
debugging.

The RISC-V semihosting specification is available at:
https://github.com/riscv/riscv-semihosting-spec/blob/main/riscv-semihosting-spec.adoc

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Kautuk Consul <kconsul@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Kautuk Consul
2022-09-12 16:22:53 +05:30
committed by Anup Patel
parent 49372f2691
commit 7f09fba86e
6 changed files with 241 additions and 1 deletions

View File

@@ -79,4 +79,8 @@ config SERIAL_XILINX_UARTLITE
bool "Xilinx UART Lite support"
default n
config SERIAL_SEMIHOSTING
bool "Semihosting support"
default n
endmenu