1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 21:07:35 +00:00

Kernel/riscv64: Implement debug_output and change cmdline to use it

Just implementing `debug_output` (and adding "serial_debug" to the
cmdline) makes the kernel print its first assertion failure!
This commit is contained in:
Sönke Holz 2023-11-23 01:36:12 +01:00 committed by Andrew Kaster
parent dfce2f6341
commit 959f2c0342
2 changed files with 6 additions and 2 deletions

View file

@ -5,13 +5,15 @@
*/
#include <Kernel/Arch/DebugOutput.h>
#include <Kernel/Arch/riscv64/SBI.h>
#include <Kernel/Library/Assertions.h>
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);
}
}