Kernel: Move ACPI to its own directory and namespace

This commit is contained in:
2024-04-04 14:14:28 +03:00
parent 7d34bd8f82
commit e0011d22f2
10 changed files with 170 additions and 161 deletions

View File

@@ -1,5 +1,5 @@
#include <BAN/ScopeGuard.h>
#include <kernel/ACPI.h>
#include <kernel/ACPI/ACPI.h>
#include <kernel/FS/DevFS/FileSystem.h>
#include <kernel/IDT.h>
#include <kernel/Input/PS2/Config.h>
@@ -244,7 +244,7 @@ namespace Kernel::Input
// FIXME: Initialise USB Controllers
// Determine if the PS/2 Controller Exists
auto* fadt = static_cast<const ACPI::FADT*>(ACPI::get().get_header("FACP"sv, 0));
auto* fadt = static_cast<const ACPI::FADT*>(ACPI::ACPI::get().get_header("FACP"sv, 0));
if (fadt && fadt->revision > 1 && !(fadt->iapc_boot_arch & (1 << 1)))
{
dwarnln_if(DEBUG_PS2, "No PS/2 available");