aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-07-28 14:20:41 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-07-28 14:20:41 +0200
commit044083a8d5b3fe94c4b9f9b066f25c81915fd4c1 (patch)
treeded0f447533f235bf91e828cbe5959f68091b9b2
parentc2f5b9258b3e151e20452f964d63ade6c6378daa (diff)
downloadkernel-044083a8d5b3fe94c4b9f9b066f25c81915fd4c1.tar.xz
kernel-044083a8d5b3fe94c4b9f9b066f25c81915fd4c1.zip
x86_64: move cpu related drivers
-rw-r--r--arch/x86_64/arch/drivers/cpu/lapic.cpp (renamed from arch/x86_64/arch/drivers/lapic.cpp)4
-rw-r--r--arch/x86_64/arch/drivers/cpu/lapic.hpp (renamed from arch/x86_64/arch/drivers/lapic.hpp)2
-rw-r--r--arch/x86_64/arch/drivers/init.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86_64/arch/drivers/lapic.cpp b/arch/x86_64/arch/drivers/cpu/lapic.cpp
index 270c04ce..2f74abc4 100644
--- a/arch/x86_64/arch/drivers/lapic.cpp
+++ b/arch/x86_64/arch/drivers/cpu/lapic.cpp
@@ -1,4 +1,4 @@
-#include <arch/drivers/lapic.hpp>
+#include <arch/drivers/cpu/lapic.hpp>
#include <arch/bus/cpu.hpp>
@@ -18,7 +18,7 @@
#include <string_view>
#include <utility>
-namespace arch::drivers
+namespace arch::drivers::cpu
{
using namespace kstd::units_literals;
diff --git a/arch/x86_64/arch/drivers/lapic.hpp b/arch/x86_64/arch/drivers/cpu/lapic.hpp
index f9d697f8..f2a8a4e9 100644
--- a/arch/x86_64/arch/drivers/lapic.hpp
+++ b/arch/x86_64/arch/drivers/cpu/lapic.hpp
@@ -14,7 +14,7 @@
#include <cstdint>
#include <string_view>
-namespace arch::drivers
+namespace arch::drivers::cpu
{
//! The driver for a core-local interrupt controller (local APIC).
diff --git a/arch/x86_64/arch/drivers/init.cpp b/arch/x86_64/arch/drivers/init.cpp
index 0027336b..19f45829 100644
--- a/arch/x86_64/arch/drivers/init.cpp
+++ b/arch/x86_64/arch/drivers/init.cpp
@@ -1,6 +1,6 @@
#include <arch/drivers/init.hpp>
-#include <arch/drivers/lapic.hpp>
+#include <arch/drivers/cpu/lapic.hpp>
#include <arch/drivers/pit.hpp>
#include <kapi/devices.hpp>
@@ -23,7 +23,7 @@ namespace arch::drivers
auto & driver_registry = kapi::devices::driver_registry::get();
driver_registry.add(kstd::make_shared<pit>(pit_frequency_in_hz));
- driver_registry.add(kstd::make_shared<lapic>());
+ driver_registry.add(kstd::make_shared<cpu::lapic>());
}
} // namespace arch::drivers