Kernel: Use uint64_t instead of size_t for AML node conversion

This allows 32 bit to compile again :)
This commit is contained in:
Bananymous 2024-12-30 06:27:49 +02:00
parent 8c45249c06
commit a5cf92b2ff
4 changed files with 4 additions and 4 deletions

View File

@ -278,7 +278,7 @@ namespace Kernel::ACPI::AML
BAN::ErrorOr<NameString> parse_name_string(BAN::ConstByteSpan& aml_data);
BAN::ErrorOr<BAN::ConstByteSpan> parse_pkg(BAN::ConstByteSpan& aml_data);
BAN::ErrorOr<Node> convert_node(Node&& source, uint8_t conversion, size_t max_length);
BAN::ErrorOr<Node> convert_node(Node&& source, uint8_t conversion, uint64_t max_length);
BAN::ErrorOr<Node> convert_node(Node&& source, const Node& target);
BAN::ErrorOr<Node> evaluate_node(const Scope& node_path, const Node& node);

View File

@ -10,7 +10,7 @@ namespace Kernel::ACPI::AML
BAN::ErrorOr<void> parse_index_field_op(ParseContext& context);
BAN::ErrorOr<void> parse_bank_field_op(ParseContext& context);
BAN::ErrorOr<Node> convert_from_field_unit(const Node& node, uint8_t conversion, size_t max_length);
BAN::ErrorOr<Node> convert_from_field_unit(const Node& node, uint8_t conversion, uint64_t max_length);
BAN::ErrorOr<void> store_to_field_unit(const Node& source, const Node& target);
}

View File

@ -551,7 +551,7 @@ namespace Kernel::ACPI::AML
}
}
BAN::ErrorOr<Node> convert_node(Node&& source, uint8_t conversion, size_t max_length)
BAN::ErrorOr<Node> convert_node(Node&& source, uint8_t conversion, uint64_t max_length)
{
dprintln_if(AML_DUMP_FUNCTION_CALLS, "convert_node {} -> 0b{3b}", source, conversion);

View File

@ -652,7 +652,7 @@ namespace Kernel::ACPI::AML
return {};
}
BAN::ErrorOr<Node> convert_from_field_unit(const Node& source, uint8_t conversion, size_t max_length)
BAN::ErrorOr<Node> convert_from_field_unit(const Node& source, uint8_t conversion, uint64_t max_length)
{
ASSERT(source.type == Node::Type::FieldUnit);