aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kapi
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-12-19 11:46:46 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-12-19 11:46:46 +0100
commitde96b0588ab680e1002c12df7ea7900d7eb71cf8 (patch)
tree41728f4f5c77a4d96dc3d89096483dfee75b3482 /arch/x86_64/src/kapi
parent266dde7d535d997a45f6eef41e44ebcaa516b75a (diff)
downloadteachos-de96b0588ab680e1002c12df7ea7900d7eb71cf8.tar.xz
teachos-de96b0588ab680e1002c12df7ea7900d7eb71cf8.zip
kstd: move println to kstd
Diffstat (limited to 'arch/x86_64/src/kapi')
-rw-r--r--arch/x86_64/src/kapi/memory.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86_64/src/kapi/memory.cpp b/arch/x86_64/src/kapi/memory.cpp
index 0a45a51..5234110 100644
--- a/arch/x86_64/src/kapi/memory.cpp
+++ b/arch/x86_64/src/kapi/memory.cpp
@@ -1,7 +1,6 @@
#include "kapi/memory.hpp"
#include "kapi/boot.hpp"
-#include "kapi/cio.hpp"
#include "kapi/system.hpp"
#include "x86_64/boot/boot.hpp"
@@ -17,6 +16,8 @@
#include "x86_64/memory/region_allocator.hpp"
#include "x86_64/memory/scoped_mapping.hpp"
+#include <kstd/print>
+
#include <multiboot2/information.hpp>
#include <atomic>
@@ -164,7 +165,7 @@ namespace teachos::memory
system::panic("[x86_64] Memory management has already been initialized.");
}
- cio::println("[x86_64:MEM] Enabling additional CPU protection features.");
+ kstd::println("[x86_64:MEM] Enabling additional CPU protection features.");
enable_cpu_protections();
@@ -172,7 +173,7 @@ namespace teachos::memory
buffered_allocator.emplace(&*region_based_allocator);
recursive_page_mapper.emplace(*buffered_allocator);
- cio::println("[x86_64:MEM] Preparing new paging hierarchy.");
+ kstd::println("[x86_64:MEM] Preparing new paging hierarchy.");
auto new_pml4_frame = inject_faux_pml4(*buffered_allocator, *recursive_page_mapper);
@@ -180,7 +181,7 @@ namespace teachos::memory
remap_vga_text_mode_buffer(*recursive_page_mapper);
remap_multiboot_information(*recursive_page_mapper);
- cio::println("[x86_64:MEM] Switching to new paging hierarchy.");
+ kstd::println("[x86_64:MEM] Switching to new paging hierarchy.");
auto cr3 = cpu::x86_64::cr3::read();
cr3.frame(new_pml4_frame);