mirror of
https://github.com/RGBCube/serenity
synced 2025-06-14 00:52:07 +00:00

This makes it clear in the code that these drivers are specific for the Raspberry Pi devices.
37 lines
851 B
C++
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);
|
|
}
|