From 793c1f3b00eec33ff1ee3e2ae75f0b78fef0b434 Mon Sep 17 00:00:00 2001 From: Erik Schmauss Date: Tue, 12 Nov 2019 14:41:18 -0800 Subject: [PATCH] Disassembler: set integer width for AML indicated by the table revision By setting the integer width, the disassembler no longer trucates 64- bit integers in AML tables with revision 2 or higher. Reported-by: Elia Geretto Tested-by: Elia Geretto Signed-off-by: Erik Schmauss --- source/common/dmtables.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/common/dmtables.c b/source/common/dmtables.c index e5536ecf3..263fa5390 100644 --- a/source/common/dmtables.c +++ b/source/common/dmtables.c @@ -508,6 +508,8 @@ AdParseTable ( AmlStart = ((UINT8 *) Table + sizeof (ACPI_TABLE_HEADER)); ASL_CV_INIT_FILETREE(Table, AmlStart, AmlLength); + AcpiUtSetIntegerWidth (Table->Revision); + /* Create the root object */ AcpiGbl_ParseOpRoot = AcpiPsCreateScopeOp (AmlStart);