Kernel: Fix and add some AML to_underlying functions

This commit is contained in:
2024-08-18 20:44:51 +03:00
parent 8902032b42
commit 0fa16cf982
3 changed files with 14 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ namespace Kernel::ACPI::AML
return ParseResult::Failure;
}
auto package_element = package->elements[index];
result = MUST(BAN::RefPtr<AML::Reference>::create(package_element));
result = MUST(BAN::RefPtr<AML::Reference>::create(package_element->to_underlying()));
break;
}
case AML::Node::Type::String: