mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:07:35 +00:00
Kernel/aarch64: Implement dbgput{str,char} in kprintf.cpp
Also changes the implementation of kernelearlyputstr to call kernelputstr, to deduplicate some logic.
This commit is contained in:
parent
b991cff60f
commit
ee883b839c
2 changed files with 16 additions and 24 deletions
|
@ -50,22 +50,6 @@ bool g_pci_access_is_disabled_from_commandline { false };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// kprintf.cpp
|
|
||||||
void dbgputstr(StringView)
|
|
||||||
{
|
|
||||||
TODO_AARCH64();
|
|
||||||
}
|
|
||||||
|
|
||||||
void dbgputstr(char const*, size_t)
|
|
||||||
{
|
|
||||||
TODO_AARCH64();
|
|
||||||
}
|
|
||||||
|
|
||||||
void dbgputchar(char)
|
|
||||||
{
|
|
||||||
TODO_AARCH64();
|
|
||||||
}
|
|
||||||
|
|
||||||
// x86 init
|
// x86 init
|
||||||
|
|
||||||
multiboot_module_entry_t multiboot_copy_boot_modules_array[16];
|
multiboot_module_entry_t multiboot_copy_boot_modules_array[16];
|
||||||
|
|
|
@ -55,12 +55,20 @@ void kernelcriticalputstr(char const* characters, size_t length)
|
||||||
|
|
||||||
void kernelearlyputstr(char const* characters, size_t length)
|
void kernelearlyputstr(char const* characters, size_t length)
|
||||||
{
|
{
|
||||||
if (!characters)
|
kernelputstr(characters, length);
|
||||||
return;
|
}
|
||||||
|
|
||||||
auto& uart = Kernel::RPi::UART::the();
|
void dbgputstr(char const* characters, size_t length)
|
||||||
uart.print_str(characters, length);
|
{
|
||||||
|
kernelputstr(characters, length);
|
||||||
for (size_t i = 0; i < length; ++i)
|
}
|
||||||
console_out(characters[i]);
|
|
||||||
|
void dbgputstr(StringView view)
|
||||||
|
{
|
||||||
|
dbgputstr(view.characters_without_null_termination(), view.length());
|
||||||
|
}
|
||||||
|
|
||||||
|
void dbgputchar(char ch)
|
||||||
|
{
|
||||||
|
kernelputstr(&ch, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue