#include "kapi/platform.hpp" #include "kapi/devices.hpp" #include "kernel/devices/cpu.hpp" #include #include #include #include namespace kapi::platform { auto cpu_detected(kapi::devices::bus & bus, std::size_t major, std::size_t minor, std::uint64_t hardware_id, bool is_bsp, kstd::unique_ptr core_interrupt_controller) -> bool { auto core = kstd::make_unique(major, minor, hardware_id, is_bsp); core->add_child(std::move(core_interrupt_controller)); bus.add_child(std::move(core)); return true; } } // namespace kapi::platform