diff --git a/Kernel/Arch/init.cpp b/Kernel/Arch/init.cpp index 5843c19821..19a24ddfa4 100644 --- a/Kernel/Arch/init.cpp +++ b/Kernel/Arch/init.cpp @@ -216,6 +216,8 @@ extern "C" [[noreturn]] UNMAP_AFTER_INIT void init([[maybe_unused]] BootInfo con multiboot_modules_count = 0; // FIXME: Read the /chosen/bootargs property. kernel_cmdline = RPi::Mailbox::the().query_kernel_command_line(s_command_line_buffer); +#elif ARCH(RISCV64) + kernel_cmdline = "serial_debug"sv; #endif setup_serial_debug(); diff --git a/Kernel/Arch/riscv64/DebugOutput.cpp b/Kernel/Arch/riscv64/DebugOutput.cpp index 57071bda9e..b6f61f608d 100644 --- a/Kernel/Arch/riscv64/DebugOutput.cpp +++ b/Kernel/Arch/riscv64/DebugOutput.cpp @@ -5,13 +5,15 @@ */ #include +#include #include namespace Kernel { -void debug_output(char) +void debug_output(char c) { - TODO_RISCV64(); + // FIXME: add extension probing support to SBI.cpp to check which debug console extensions are available + (void)SBI::Legacy::console_putchar(c); } }