1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 23:25:08 +00:00
serenity/Kernel/Arch/riscv64/DebugOutput.cpp
Sönke Holz 959f2c0342 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!
2024-01-12 16:46:46 -07:00

19 lines
428 B
C++

/*
* Copyright (c) 2023, Sönke Holz <sholz8530@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Arch/DebugOutput.h>
#include <Kernel/Arch/riscv64/SBI.h>
#include <Kernel/Library/Assertions.h>
namespace Kernel {
void debug_output(char c)
{
// FIXME: add extension probing support to SBI.cpp to check which debug console extensions are available
(void)SBI::Legacy::console_putchar(c);
}
}