diff --git a/tools/amldecode/aml/parser.h b/tools/amldecode/aml/parser.h index 8b59971..0a71036 100644 --- a/tools/amldecode/aml/parser.h +++ b/tools/amldecode/aml/parser.h @@ -22,6 +22,7 @@ struct aml_parser_scope { }; struct aml_parser { + int revision; unsigned char *start, *end; unsigned char *ptr, *saved_ptr; struct acpi_namespace *ns; diff --git a/tools/amldecode/main.c b/tools/amldecode/main.c index 45914a0..f1fe9ae 100644 --- a/tools/amldecode/main.c +++ b/tools/amldecode/main.c @@ -139,6 +139,7 @@ int main(int argc, const char **argv) struct aml_parser parser; aml_parser_init(&parser, table_payload, payload_len); + parser.revision = table->revision; enum parse_status parser_status = aml_parser_parse_into_namespace(&parser, ns); if (parser_status != PARSE_OK) {