blob: 3f0f044330fe2d2818cc7cb003d8f36045e8fd5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "kapi/boot_modules.hpp"
#include "kapi/system.hpp"
#include <optional>
namespace kapi::boot_modules
{
constinit auto static registry = std::optional<kapi::boot_modules::boot_module_registry>{};
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
|