#include "kapi/boot_modules.hpp" #include "kapi/system.hpp" #include namespace kapi::boot_modules { constinit auto static registry = std::optional{}; auto set_boot_module_registry(boot_module_registry & registry) -> void { if (kapi::boot_modules::registry) { system::panic("[x86_64] Boot module registry has already been set."); } kapi::boot_modules::registry = registry; } } // namespace kapi::boot_modules