aboutsummaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-10-22 12:51:48 +0100
committerMichael Brown <mcb30@ipxe.org>2024-10-22 12:51:48 +0100
commitb23204b383cdea4ad64276991b55d8019fee3265 (patch)
tree8d6ca9eb9b58e6b6f4fee1efb2dabb80216a423e /src/config
parentfa1c24d14baf903c549fdb4f30a55b115eccad7d (diff)
downloadipxe-b23204b383cdea4ad64276991b55d8019fee3265.tar.gz
[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>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.c3
-rw-r--r--src/config/console.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/config/config.c b/src/config/config.c
index 0f950eb9d..4cfa5dd41 100644
--- a/src/config/config.c
+++ b/src/config/config.c
@@ -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
diff --git a/src/config/console.h b/src/config/console.h
index 9f770d094..0ff328b7c 100644
--- a/src/config/console.h
+++ b/src/config/console.h
@@ -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