mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 21:37:58 +03:00
Kernel: Add support for displaying critical output on aarch64
This commit is contained in:
parent
3b331a83e2
commit
14fe03569a
Notes:
sideshowbarker
2024-07-17 07:14:47 +09:00
Author: https://github.com/filiphsps Commit: https://github.com/SerenityOS/serenity/commit/14fe03569a Pull-request: https://github.com/SerenityOS/serenity/pull/14815 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/FireFox317 ✅ Reviewed-by: https://github.com/kleinesfilmroellchen ✅ Reviewed-by: https://github.com/linusg
@ -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…
Reference in New Issue
Block a user