Kernel: ACPI add easier API for calling methods with arguments

This commit is contained in:
2025-04-01 22:51:00 +03:00
parent 35149b6960
commit 0e085b30cc
4 changed files with 32 additions and 3 deletions

View File

@@ -819,7 +819,7 @@ acpi_release_global_lock:
auto index = i * 8 + (pending & ~(pending - 1));
if (m_gpe_methods[index])
if (auto ret = AML::method_call(m_gpe_scope, m_gpe_methods[index]->node, {}); ret.is_error())
if (auto ret = AML::method_call(m_gpe_scope, m_gpe_methods[index]->node, BAN::Array<AML::Reference*, 7>{}); ret.is_error())
dwarnln("Failed to evaluate _GPE {}: ", index, ret.error());
handled_event = true;