aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-04-23 13:31:17 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-04-23 13:31:17 +0200
commit2d8fed40bd0d0f8144783b6b344dc79944291b72 (patch)
tree81e8f29078723e807ad6b32391a884136ec6dd14 /arch/x86_64/src/memory
parentdec3c3b0387ec477125db21e741bc492d3475db5 (diff)
downloadteachos-2d8fed40bd0d0f8144783b6b344dc79944291b72.tar.xz
teachos-2d8fed40bd0d0f8144783b6b344dc79944291b72.zip
chore: organize includes
Diffstat (limited to 'arch/x86_64/src/memory')
-rw-r--r--arch/x86_64/src/memory/higher_half_mapper.cpp6
-rw-r--r--arch/x86_64/src/memory/kernel_mapper.cpp7
-rw-r--r--arch/x86_64/src/memory/mmu.cpp4
3 files changed, 9 insertions, 8 deletions
diff --git a/arch/x86_64/src/memory/higher_half_mapper.cpp b/arch/x86_64/src/memory/higher_half_mapper.cpp
index abb54a3..b0d1995 100644
--- a/arch/x86_64/src/memory/higher_half_mapper.cpp
+++ b/arch/x86_64/src/memory/higher_half_mapper.cpp
@@ -1,11 +1,11 @@
#include "arch/memory/higher_half_mapper.hpp"
-#include "kapi/memory.hpp"
-#include "kapi/system.hpp"
-
#include "arch/memory/page_table.hpp"
#include "arch/memory/page_utilities.hpp"
+#include "kapi/memory.hpp"
+#include "kapi/system.hpp"
+
#include <algorithm>
#include <array>
#include <cstddef>
diff --git a/arch/x86_64/src/memory/kernel_mapper.cpp b/arch/x86_64/src/memory/kernel_mapper.cpp
index ced8a14..46d4dca 100644
--- a/arch/x86_64/src/memory/kernel_mapper.cpp
+++ b/arch/x86_64/src/memory/kernel_mapper.cpp
@@ -1,15 +1,16 @@
#include "arch/memory/kernel_mapper.hpp"
+#include "arch/boot/ld.hpp"
+
#include "kapi/memory.hpp"
#include "kapi/system.hpp"
-#include "arch/boot/ld.hpp"
+#include <elf/format.hpp>
+#include <elf/section_header.hpp>
#include <kstd/print>
#include <kstd/units>
-#include <elf/format.hpp>
-#include <elf/section_header.hpp>
#include <multiboot2/information.hpp>
#include <algorithm>
diff --git a/arch/x86_64/src/memory/mmu.cpp b/arch/x86_64/src/memory/mmu.cpp
index ea23278..6d185a0 100644
--- a/arch/x86_64/src/memory/mmu.cpp
+++ b/arch/x86_64/src/memory/mmu.cpp
@@ -1,9 +1,9 @@
#include "arch/memory/mmu.hpp"
-#include "kapi/memory.hpp"
-
#include "arch/cpu/registers.hpp"
+#include "kapi/memory.hpp"
+
namespace arch::memory
{
auto tlb_flush(kapi::memory::linear_address address) -> void