diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-04-10 17:49:40 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-04-10 17:49:40 +0200 |
| commit | 21fd1281cf19572e202d583689b99c33ec68da50 (patch) | |
| tree | 3325e00e4ccfe95db42be7a38a48350681c1c79f /arch/x86_64/kapi | |
| parent | c3f7b747f02a79b34ed914c54ce74be973b17af1 (diff) | |
| download | teachos-21fd1281cf19572e202d583689b99c33ec68da50.tar.xz teachos-21fd1281cf19572e202d583689b99c33ec68da50.zip | |
kernel: let arch initialize the ACPI manager
Diffstat (limited to 'arch/x86_64/kapi')
| -rw-r--r-- | arch/x86_64/kapi/acpi.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/arch/x86_64/kapi/acpi.cpp b/arch/x86_64/kapi/acpi.cpp deleted file mode 100644 index 40b7160..0000000 --- a/arch/x86_64/kapi/acpi.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "kapi/acpi.hpp" - -#include "arch/boot/boot.hpp" - -#include <kstd/memory> - -#include <acpi/acpi.hpp> - -namespace kapi::acpi -{ - - auto get_root_pointer() -> kstd::observer_ptr<::acpi::rsdp const> - { - auto const & mbi = kapi::boot::bootstrap_information.mbi; - auto system_description_pointer = static_cast<::acpi::rsdp const *>(nullptr); - - if (auto const & xsdp = mbi->maybe_acpi_xsdp()) - { - auto data = xsdp->pointer().data(); - - system_description_pointer = reinterpret_cast<::acpi::xsdp const *>(data); - } - else if (auto const & rsdp = mbi->maybe_acpi_rsdp()) - { - auto data = rsdp->pointer().data(); - system_description_pointer = reinterpret_cast<::acpi::rsdp const *>(data); - } - - return kstd::make_observer(system_description_pointer); - } - -} // namespace kapi::acpi
\ No newline at end of file |
