tools: amldecode: store table revision in parser
This commit is contained in:
@@ -22,6 +22,7 @@ struct aml_parser_scope {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct aml_parser {
|
struct aml_parser {
|
||||||
|
int revision;
|
||||||
unsigned char *start, *end;
|
unsigned char *start, *end;
|
||||||
unsigned char *ptr, *saved_ptr;
|
unsigned char *ptr, *saved_ptr;
|
||||||
struct acpi_namespace *ns;
|
struct acpi_namespace *ns;
|
||||||
|
|||||||
@@ -139,6 +139,7 @@ int main(int argc, const char **argv)
|
|||||||
|
|
||||||
struct aml_parser parser;
|
struct aml_parser parser;
|
||||||
aml_parser_init(&parser, table_payload, payload_len);
|
aml_parser_init(&parser, table_payload, payload_len);
|
||||||
|
parser.revision = table->revision;
|
||||||
|
|
||||||
enum parse_status parser_status = aml_parser_parse_into_namespace(&parser, ns);
|
enum parse_status parser_status = aml_parser_parse_into_namespace(&parser, ns);
|
||||||
if (parser_status != PARSE_OK) {
|
if (parser_status != PARSE_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user