[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
+3
View File
@@ -78,6 +78,9 @@ REQUIRE_OBJECT ( vmconsole );
#ifdef CONSOLE_DEBUGCON
REQUIRE_OBJECT ( debugcon );
#endif
#ifdef CONSOLE_SBI
REQUIRE_OBJECT ( sbi_console );
#endif
/*
* Drag in all requested network protocols
+1
View File
@@ -41,6 +41,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
//#define CONSOLE_VMWARE /* VMware logfile console */
//#define CONSOLE_DEBUGCON /* Bochs/QEMU/KVM debug port console */
//#define CONSOLE_INT13 /* INT13 disk log console */
//#define CONSOLE_SBI /* RISC-V SBI debug console */
/*
* Very obscure console types