]> git.dujemihanovic.xyz Git - u-boot.git/commit
arch/riscv: add semihosting support for RISC-V
authorKautuk Consul <kconsul@ventanamicro.com>
Wed, 7 Dec 2022 11:42:35 +0000 (17:12 +0530)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 8 Dec 2022 07:15:58 +0000 (15:15 +0800)
commitae3527f088062dc4e117b0c4d4319e068f5e44cd
treefa08dd5ee80ff563cb71240bafd1ad0b23ff22cd
parent1c03ab9f4bdf19d1ac7afc157788bd0102ccd969
arch/riscv: add semihosting support for RISC-V

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: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/include/asm/spl.h
arch/riscv/lib/Makefile
arch/riscv/lib/interrupts.c
arch/riscv/lib/semihosting.c [new file with mode: 0644]
lib/Kconfig