mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
Kernel: Add support for displaying critical output on aarch64
This commit is contained in:
committed by
Linus Groh
parent
3b331a83e2
commit
14fe03569a
@@ -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)
|
void kernelputstr(char const* characters, size_t length)
|
||||||
{
|
{
|
||||||
if (!characters)
|
if (!characters)
|
||||||
@@ -41,6 +48,9 @@ void kernelcriticalputstr(char const* characters, size_t length)
|
|||||||
|
|
||||||
auto& uart = Kernel::RPi::UART::the();
|
auto& uart = Kernel::RPi::UART::the();
|
||||||
uart.print_str(characters, length);
|
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)
|
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();
|
auto& uart = Kernel::RPi::UART::the();
|
||||||
uart.print_str(characters, length);
|
uart.print_str(characters, length);
|
||||||
|
|
||||||
|
for (size_t i = 0; i < length; ++i)
|
||||||
|
console_out(characters[i]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user