Kernel: Fix entering ACPI mode

My condition to check wheter to enter ACPI mode was incorrect.
I only entered ACPI mode if I already was in ACPI mode :DD
This commit is contained in:
2024-04-15 15:05:48 +03:00
parent 5affc73ee6
commit 9fac5f94ba
2 changed files with 6 additions and 1 deletions

View File

@@ -17,6 +17,8 @@ namespace Kernel::ACPI
static void acquire_global_lock();
static void release_global_lock();
bool hardware_reduced() const { return m_hardware_reduced; }
const SDTHeader* get_header(BAN::StringView signature, uint32_t index);
// mode
@@ -47,6 +49,7 @@ namespace Kernel::ACPI
};
BAN::Vector<MappedPage> m_mapped_headers;
bool m_hardware_reduced { false };
BAN::RefPtr<AML::Namespace> m_namespace;
};