aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/devices/cpu.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-07-28 13:09:08 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-07-28 13:09:08 +0200
commit36248bb63a396dfea762d5b2cf028bf4b7a2b62e (patch)
treeb05726555a387b719292a4d19c4c4a5cbc7e31cc /kernel/kapi/devices/cpu.cpp
parentb5450cecbffdca1dd9dffdb58dd295a6a5d7f6eb (diff)
downloadkernel-36248bb63a396dfea762d5b2cf028bf4b7a2b62e.tar.xz
kernel-36248bb63a396dfea762d5b2cf028bf4b7a2b62e.zip
x86_64: split lapic according to UDM
Diffstat (limited to 'kernel/kapi/devices/cpu.cpp')
-rw-r--r--kernel/kapi/devices/cpu.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/kernel/kapi/devices/cpu.cpp b/kernel/kapi/devices/cpu.cpp
deleted file mode 100644
index daba34a8..00000000
--- a/kernel/kapi/devices/cpu.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-#include <kapi/devices/cpu.hpp>
-
-#include <kapi/devices.hpp>
-
-#include <kstd/format.hpp>
-
-#include <cstdint>
-
-namespace kapi::devices
-{
-
- cpu::core::core(std::uint64_t index, std::uint64_t hardware_id, bool is_bsp)
- : kapi::devices::bus{kstd::format("cpu_core{}", index)}
- , m_index{index}
- , m_hardware_id{hardware_id}
- , m_is_bsp{is_bsp}
- {}
-
- auto cpu::core::index() const noexcept -> std::uint64_t
- {
- return m_index;
- }
-
- auto cpu::core::hardware_id() const -> std::uint64_t
- {
- return m_hardware_id;
- }
-
- auto cpu::core::is_bsp() const -> bool
- {
- return m_is_bsp;
- }
-
- cpu::cpu()
- : kapi::devices::bus{"cpu"}
- {}
-
-} // namespace kapi::devices \ No newline at end of file