summaryrefslogtreecommitdiff
path: root/Kernel/Arch/aarch64/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Arch/aarch64/Utils.cpp')
-rw-r--r--Kernel/Arch/aarch64/Utils.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Kernel/Arch/aarch64/Utils.cpp b/Kernel/Arch/aarch64/Utils.cpp
new file mode 100644
index 0000000000..92d2f3a7d8
--- /dev/null
+++ b/Kernel/Arch/aarch64/Utils.cpp
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2021, Marcin Undak <mcinek@gmail.com>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#include <Kernel/Arch/aarch64/UART.h>
+#include <Kernel/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);
+}