]> git.proxmox.com Git - mirror_qemu.git/commitdiff
acpi: add a missing backslash to the \_SB scope.
authorGal Hammer <ghammer@redhat.com>
Tue, 21 Apr 2015 08:26:12 +0000 (11:26 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 28 Apr 2015 05:56:19 +0000 (07:56 +0200)
A predefined scope in the ACPI specs is precede with a backslash.

Signed-off-by: Gal Hammer <ghammer@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
hw/i386/acpi-build.c
include/hw/acpi/aml-build.h

index 967448a1ed05ff3ec32f3ec6de911482a793dd71..02b2e0cece0d815399ff622916b9d6446fbcaa7a 100644 (file)
@@ -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));
index 15579e60ca22e968e9e0561f125d3f5e9fa3a15c..3947201fd1b248fb0cb9c421d6b18b9a08f09809 100644 (file)
@@ -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")));