mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
This allows us to use the AK formatting functions in the aarch64 Kernel. Also add FIXME to make sure that this file will be removed when the proper abstractions are in place in the normal Kernel/kprintf.cpp.
37 lines
800 B
C++
37 lines
800 B
C++
/*
|
|
* Copyright (c) 2022, Timon Kruiper <timonkruiper@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <Kernel/Arch/aarch64/RPi/UART.h>
|
|
#include <Kernel/kstdio.h>
|
|
|
|
// FIXME: Merge the code in this file with Kernel/kprintf.cpp once the proper abstractions are in place.
|
|
|
|
void kernelputstr(char const* characters, size_t)
|
|
{
|
|
if (!characters)
|
|
return;
|
|
|
|
auto& uart = Prekernel::UART::the();
|
|
uart.print_str(characters);
|
|
}
|
|
|
|
void kernelcriticalputstr(char const* characters, size_t)
|
|
{
|
|
if (!characters)
|
|
return;
|
|
|
|
auto& uart = Prekernel::UART::the();
|
|
uart.print_str(characters);
|
|
}
|
|
|
|
void kernelearlyputstr(char const* characters, size_t)
|
|
{
|
|
if (!characters)
|
|
return;
|
|
|
|
auto& uart = Prekernel::UART::the();
|
|
uart.print_str(characters);
|
|
}
|