1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

Kernel: Add temporary debug printing utilities for Aarch64

Added dbgln() and warnln() debug functions to help bootstraping.
Eventually they are going to be replaced by AK/Format.h implementation.
This commit is contained in:
Marcin Undak 2021-10-14 22:48:48 -04:00 committed by Andreas Kling
parent 0329a37271
commit 82a73b8499
3 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,20 @@
/*
* Copyright (c) 2021, Marcin Undak <mcinek@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Prekernel/Arch/aarch64/UART.h>
#include <Kernel/Prekernel/Arch/aarch64/Utils.h>
void Prekernel::dbgln(const char* text)
{
auto& uart = Prekernel::UART::the();
uart.print_str(text);
uart.print_str("\r\n");
}
void Prekernel::warnln(const char* text)
{
dbgln(text);
}