[riscv] Add support for the SBI debug console

Add the ability to issue Supervisor Binary Interface (SBI) calls via
the ECALL instruction, and use the SBI DBCN extension to implement a
debug console.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2024-10-22 12:51:48 +01:00
parent fa1c24d14b
commit b23204b383
5 changed files with 263 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ INCDIRS := arch/$(ARCH)/include arch/riscv/include $(INCDIRS)
# RISCV-specific directories containing source files
#
SRCDIRS += arch/riscv/core
SRCDIRS += arch/riscv/interface/sbi
# RISCV-specific flags
#