From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yrn8O-0003ON-5s for qemu-devel@nongnu.org; Mon, 11 May 2015 08:48:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yrn8K-0002fz-U1 for qemu-devel@nongnu.org; Mon, 11 May 2015 08:48:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yrn8K-0002fs-Pl for qemu-devel@nongnu.org; Mon, 11 May 2015 08:48:32 -0400 Date: Mon, 11 May 2015 14:48:29 +0200 From: "Michael S. Tsirkin" Message-ID: <1431329108-2605-25-git-send-email-mst@redhat.com> References: <1431329108-2605-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431329108-2605-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 24/28] acpi: add a missing backslash to the \_SB scope. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gal Hammer , Peter Maydell , Richard Henderson , Paolo Bonzini , Igor Mammedov From: Gal Hammer A predefined scope in the ACPI specs is precede with a backslash. Signed-off-by: Gal Hammer Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov --- 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