mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
Kernel: Add support for displaying critical output on aarch64
This commit is contained in:
parent
3b331a83e2
commit
14fe03569a
1 changed files with 13 additions and 0 deletions
|
@ -22,6 +22,13 @@ static void console_out(char ch)
|
|||
}
|
||||
}
|
||||
|
||||
static void critical_console_out(char ch)
|
||||
{
|
||||
if (auto* boot_console = g_boot_console.load()) {
|
||||
boot_console->write(ch, true);
|
||||
}
|
||||
}
|
||||
|
||||
void kernelputstr(char const* characters, size_t length)
|
||||
{
|
||||
if (!characters)
|
||||
|
@ -41,6 +48,9 @@ void kernelcriticalputstr(char const* characters, size_t length)
|
|||
|
||||
auto& uart = Kernel::RPi::UART::the();
|
||||
uart.print_str(characters, length);
|
||||
|
||||
for (size_t i = 0; i < length; ++i)
|
||||
critical_console_out(characters[i]);
|
||||
}
|
||||
|
||||
void kernelearlyputstr(char const* characters, size_t length)
|
||||
|
@ -50,4 +60,7 @@ void kernelearlyputstr(char const* characters, size_t length)
|
|||
|
||||
auto& uart = Kernel::RPi::UART::the();
|
||||
uart.print_str(characters, length);
|
||||
|
||||
for (size_t i = 0; i < length; ++i)
|
||||
console_out(characters[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue