qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/3] Fix aml_name_string() to recognize block name modifiers.
@ 2012-05-20  9:03 Gleb Natapov
  2012-05-20  9:03 ` [Qemu-devel] [PATCH 2/3] Add ACPI_EXTRACT_PKG_START macro parsing Gleb Natapov
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Gleb Natapov @ 2012-05-20  9:03 UTC (permalink / raw)
  To: seabios; +Cc: qemu-devel


Signed-off-by: Gleb Natapov <gleb@redhat.com>
---
 tools/acpi_extract.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

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):
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2012-06-22  1:06 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-20  9:03 [Qemu-devel] [PATCH 1/3] Fix aml_name_string() to recognize block name modifiers Gleb Natapov
2012-05-20  9:03 ` [Qemu-devel] [PATCH 2/3] Add ACPI_EXTRACT_PKG_START macro parsing Gleb Natapov
2012-05-20  9:03 ` [Qemu-devel] [PATCH 3/3] Get system state configuration from QEMU and patch DSDT with it Gleb Natapov
2012-05-20 11:44   ` Avi Kivity
2012-05-20 12:15     ` Gleb Natapov
2012-05-20 12:30       ` Avi Kivity
2012-05-20 12:36         ` Gleb Natapov
2012-05-20 12:47           ` Avi Kivity
2012-05-20 12:59             ` Gleb Natapov
2012-05-20 13:39               ` Avi Kivity
2012-05-20 13:57                 ` Gleb Natapov
2012-05-20 14:34                   ` Avi Kivity
2012-05-20 14:43                     ` Gleb Natapov
2012-05-20 14:46                       ` Avi Kivity
2012-05-20 15:15                         ` Gleb Natapov
2012-05-20 16:16                           ` Kevin O'Connor
2012-05-20 16:25                             ` Avi Kivity
2012-05-20 16:39                               ` Kevin O'Connor
2012-05-20 16:49                                 ` Gleb Natapov
2012-05-20 16:11                 ` Kevin O'Connor
2012-05-20 10:32 ` [Qemu-devel] [SeaBIOS] [PATCH 1/3] Fix aml_name_string() to recognize block name modifiers Alon Levy
2012-05-20 11:13   ` Gleb Natapov
2012-05-23  1:23 ` [Qemu-devel] " Kevin O'Connor
2012-06-20 13:08   ` Gleb Natapov
2012-06-22  1:06     ` Kevin O'Connor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).