aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/devices/cpu.cpp
diff options
context:
space:
mode:
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