[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

@@ -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