Kernel: Allow AML package->package conversion

This commit is contained in:
Bananymous 2025-08-14 19:02:34 +03:00
parent 2819e5f647
commit 46d1ada708
1 changed files with 2 additions and 0 deletions

View File

@ -693,6 +693,8 @@ namespace Kernel::ACPI::AML
return convert_node(BAN::move(source), ConvString, target.as.str_buf->size); return convert_node(BAN::move(source), ConvString, target.as.str_buf->size);
if (target.type == Node::Type::Buffer) if (target.type == Node::Type::Buffer)
return convert_node(BAN::move(source), ConvBuffer, target.as.str_buf->size); return convert_node(BAN::move(source), ConvBuffer, target.as.str_buf->size);
if (target.type == Node::Type::Package && source.type == Node::Type::Package)
return source;
dwarnln("Invalid conversion from {} to {}", source, target); dwarnln("Invalid conversion from {} to {}", source, target);
return BAN::Error::from_errno(EINVAL); return BAN::Error::from_errno(EINVAL);
} }