Kernel: ACPI allow more calling or \_S5

Spec says that \_Sx must have 4 fields, but virtual box seems to only
have the two defined once. This patch allows shutodown on virtual box
This commit is contained in:
Bananymous 2024-06-25 23:25:10 +03:00
parent 60a05412c9
commit cb07142832
1 changed files with 2 additions and 2 deletions

View File

@ -506,9 +506,9 @@ acpi_release_global_lock:
return;
}
auto* s5_package = static_cast<AML::Package*>(s5_evaluated.ptr());
if (s5_package->elements.size() != 4)
if (s5_package->elements.size() < 2)
{
dwarnln("\\_S5 package has {} elements, expected 4", s5_package->elements.size());
dwarnln("\\_S5 package has {} elements, expected atleast 2", s5_package->elements.size());
return;
}