From: Gleb Natapov Date: Sun, 20 May 2012 09:03:38 +0000 (+0300) Subject: Fix aml_name_string() to recognize block name modifiers. X-Git-Tag: rel-1.7.1~22 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2197ff6667275f271baa8aa06cb85ce7d0805a1a;p=seabios.git Fix aml_name_string() to recognize block name modifiers. Signed-off-by: Gleb Natapov --- diff --git a/tools/acpi_extract.py b/tools/acpi_extract.py index 5f613e4..8038269 100755 --- a/tools/acpi_extract.py +++ b/tools/acpi_extract.py @@ -121,7 +121,11 @@ def aml_name_string(offset): if (aml[offset] != 0x08): die( "Name offset 0x%x: expected 0x08 actual 0x%x" % (offset, aml[offset])); - return offset + 1; + offset += 1 + # Block Name Modifier. Skip it. + if (aml[offset] == 0x5c or aml[offset] == 0x5e): + offset += 1 + return offset; # Given data offset, find dword const offset def aml_data_dword_const(offset):