diff mbox

[13/13] i386: acpi: mark SSDT as RSDT entry so API would add entry to RSDT automatically

Message ID 1422439417-5031-14-git-send-email-imammedo@redhat.com
State New
Headers show

Commit Message

Igor Mammedov Jan. 28, 2015, 10:03 a.m. UTC
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
 hw/i386/acpi-build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index d7d2590..da259aa 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -649,6 +649,7 @@  build_ssdt(AcpiAml *table_aml, GArray *linker,
     /* Init SSDT Definition Block */
     ssdt =
         acpi_def_block("SSDT", 1, ACPI_BUILD_APPNAME6, ACPI_BUILD_APPNAME4, 1);
+    ssdt->has_rsdt_entry = true;
 
     scope = acpi_scope("\\_SB.PCI0");
     /* build PCI0._CRS */
@@ -1386,7 +1387,6 @@  void acpi_build(PcGuestInfo *guest_info, AcpiBuildTables *tables)
     build_fadt(tables->table_data->buf, tables->linker, &pm, facs, dsdt);
 
     ssdt = tables->table_data->buf->len;
-    acpi_add_table(table_offsets, tables->table_data->buf);
     build_ssdt(tables->table_data, tables->linker, &cpu, &pm, &misc, &pci,
                guest_info);
     aml_len += tables->table_data->buf->len - ssdt;