qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 24/28] acpi: add a missing backslash to the \_SB scop


From: Michael S. Tsirkin
Subject: [Qemu-devel] [PULL 24/28] acpi: add a missing backslash to the \_SB scope.
Date: Mon, 11 May 2015 14:48:29 +0200

From: Gal Hammer <address@hidden>

A predefined scope in the ACPI specs is precede with a backslash.

Signed-off-by: Gal Hammer <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
---
 include/hw/acpi/aml-build.h | 2 +-
 hw/i386/acpi-build.c        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h
index 15579e6..3947201 100644
--- a/include/hw/acpi/aml-build.h
+++ b/include/hw/acpi/aml-build.h
@@ -146,7 +146,7 @@ void free_aml_allocator(void);
  * Joins Aml elements together and helps to construct AML tables
  * Examle of usage:
  *   Aml *table = aml_def_block("SSDT", ...);
- *   Aml *sb = aml_scope("\_SB");
+ *   Aml *sb = aml_scope("\\_SB");
  *   Aml *dev = aml_device("PCI0");
  *
  *   aml_append(dev, aml_name_decl("HID", aml_eisaid("PNP0A03")));
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index 967448a..02b2e0c 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -763,7 +763,7 @@ build_ssdt(GArray *table_data, GArray *linker,
         aml_append(ssdt, scope);
     }
 
-    sb_scope = aml_scope("_SB");
+    sb_scope = aml_scope("\\_SB");
     {
         /* create PCI0.PRES device and its _CRS to reserve CPU hotplug MMIO */
         dev = aml_device("PCI0." stringify(CPU_HOTPLUG_RESOURCE_DEVICE));
-- 
MST




reply via email to

[Prev in Thread] Current Thread [Next in Thread]