mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 23:25:08 +00:00

Just implementing `debug_output` (and adding "serial_debug" to the cmdline) makes the kernel print its first assertion failure!
19 lines
428 B
C++
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);
|
|
}
|
|
|
|
}
|