1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-14 00:52:07 +00:00
serenity/Kernel/Arch/aarch64/kprintf.cpp
Timon Kruiper 63ee2781fb Kernel: Put Raspberry Pi devices into RPi namespace
This makes it clear in the code that these drivers are specific for the
Raspberry Pi devices.
2022-06-02 13:14:12 +01:00

37 lines
851 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 length)
{
if (!characters)
return;
auto& uart = Kernel::RPi::UART::the();
uart.print_str(characters, length);
}
void kernelcriticalputstr(char const* characters, size_t length)
{
if (!characters)
return;
auto& uart = Kernel::RPi::UART::the();
uart.print_str(characters, length);
}
void kernelearlyputstr(char const* characters, size_t length)
{
if (!characters)
return;
auto& uart = Kernel::RPi::UART::the();
uart.print_str(characters, length);
}