[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 08/13] i386: acpi: hack not yet converted tables cal
From: |
Igor Mammedov |
Subject: |
[Qemu-devel] [PATCH 08/13] i386: acpi: hack not yet converted tables calls to deal with table_data being a pointer |
Date: |
Wed, 28 Jan 2015 10:03:32 +0000 |
Signed-off-by: Igor Mammedov <address@hidden>
---
hw/i386/acpi-build.c | 58 ++++++++++++++++++++++++++--------------------------
1 file changed, 29 insertions(+), 29 deletions(-)
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index 624c903..bac0156 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -1370,66 +1370,66 @@ void acpi_build(PcGuestInfo *guest_info,
AcpiBuildTables *tables)
* We place it first since it's the only table that has alignment
* requirements.
*/
- facs = tables->table_data.buf->len;
- build_facs(tables->table_data.buf, tables->linker, guest_info);
+ facs = tables->table_data->buf->len;
+ build_facs(tables->table_data->buf, tables->linker, guest_info);
/* DSDT is pointed to by FADT */
- dsdt = tables->table_data.buf->len;
- build_dsdt(tables->table_data.buf, tables->linker, &misc);
+ dsdt = tables->table_data->buf->len;
+ build_dsdt(tables->table_data->buf, tables->linker, &misc);
/* Count the size of the DSDT and SSDT, we will need it for legacy
* sizing of ACPI tables.
*/
- aml_len += tables->table_data.buf->len - dsdt;
+ aml_len += tables->table_data->buf->len - dsdt;
/* ACPI tables pointed to by RSDT */
- acpi_add_table(table_offsets, tables->table_data.buf);
- build_fadt(tables->table_data.buf, tables->linker, &pm, facs, dsdt);
+ acpi_add_table(table_offsets, tables->table_data->buf);
+ 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,
+ 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;
+ aml_len += tables->table_data->buf->len - ssdt;
- acpi_add_table(table_offsets, tables->table_data.buf);
- build_madt(tables->table_data.buf, tables->linker, &cpu, guest_info);
+ acpi_add_table(table_offsets, tables->table_data->buf);
+ build_madt(tables->table_data->buf, tables->linker, &cpu, guest_info);
if (misc.has_hpet) {
- acpi_add_table(table_offsets, tables->table_data.buf);
- build_hpet(tables->table_data.buf, tables->linker);
+ acpi_add_table(table_offsets, tables->table_data->buf);
+ build_hpet(tables->table_data->buf, tables->linker);
}
if (misc.has_tpm) {
- acpi_add_table(table_offsets, tables->table_data.buf);
- build_tpm_tcpa(tables->table_data.buf, tables->linker,
tables->tcpalog);
+ acpi_add_table(table_offsets, tables->table_data->buf);
+ build_tpm_tcpa(tables->table_data->buf, tables->linker,
tables->tcpalog);
- acpi_add_table(table_offsets, tables->table_data.buf);
- build_tpm_ssdt(tables->table_data.buf, tables->linker);
+ acpi_add_table(table_offsets, tables->table_data->buf);
+ build_tpm_ssdt(tables->table_data->buf, tables->linker);
}
if (guest_info->numa_nodes) {
- acpi_add_table(table_offsets, tables->table_data.buf);
- build_srat(tables->table_data.buf, tables->linker, guest_info);
+ acpi_add_table(table_offsets, tables->table_data->buf);
+ build_srat(tables->table_data->buf, tables->linker, guest_info);
}
if (acpi_get_mcfg(&mcfg)) {
- acpi_add_table(table_offsets, tables->table_data.buf);
- build_mcfg_q35(tables->table_data.buf, tables->linker, &mcfg);
+ acpi_add_table(table_offsets, tables->table_data->buf);
+ build_mcfg_q35(tables->table_data->buf, tables->linker, &mcfg);
}
if (acpi_has_iommu()) {
- acpi_add_table(table_offsets, tables->table_data.buf);
- build_dmar_q35(tables->table_data.buf, tables->linker);
+ acpi_add_table(table_offsets, tables->table_data->buf);
+ build_dmar_q35(tables->table_data->buf, tables->linker);
}
/* Add tables supplied by user (if any) */
for (u = acpi_table_first(); u; u = acpi_table_next(u)) {
unsigned len = acpi_table_len(u);
- acpi_add_table(table_offsets, tables->table_data.buf);
- g_array_append_vals(tables->table_data.buf, u, len);
+ acpi_add_table(table_offsets, tables->table_data->buf);
+ g_array_append_vals(tables->table_data->buf, u, len);
}
/* RSDT is pointed to by RSDP */
- rsdt = tables->table_data.buf->len;
- build_rsdt(tables->table_data.buf, tables->linker, table_offsets);
+ rsdt = tables->table_data->buf->len;
+ build_rsdt(tables->table_data->buf, tables->linker, table_offsets);
/* RSDP is in FSEG memory, so allocate it separately */
build_rsdp(tables->rsdp, tables->linker, rsdt);
--
1.8.3.1
- Re: [Qemu-devel] [PATCH v2 01/47] acpi: introduce AML composer aml_append(), (continued)
- Re: [Qemu-devel] [PATCH v2 01/47] acpi: introduce AML composer aml_append(), Igor Mammedov, 2015/01/27
- Re: [Qemu-devel] [PATCH v2 01/47] acpi: introduce AML composer aml_append(), Michael S. Tsirkin, 2015/01/28
- [Qemu-devel] [PATCH 00/13] convert AML API to QOM, Igor Mammedov, 2015/01/28
- [Qemu-devel] [PATCH 02/13] make toplevel ACPI tables blob a pointer, Igor Mammedov, 2015/01/28
- [Qemu-devel] [PATCH 04/13] acpi: make AcpiAml an OQM object, Igor Mammedov, 2015/01/28
- [Qemu-devel] [PATCH 03/13] qom: add support for weak referenced object: aka UnownedObject, Igor Mammedov, 2015/01/28
- Re: [Qemu-devel] [PATCH 03/13] qom: add support for weak referenced object: aka UnownedObject, Paolo Bonzini, 2015/01/28
- Re: [Qemu-devel] [PATCH 03/13] qom: add support for weak referenced object: aka UnownedObject, Igor Mammedov, 2015/01/28
- [Qemu-devel] [PATCH 05/13] acpi: use TYPE_AML_OBJECT inside of AML API, Igor Mammedov, 2015/01/28
- [Qemu-devel] [PATCH 09/13] acpi: add aml_blob() helper, Igor Mammedov, 2015/01/28
- [Qemu-devel] [PATCH 08/13] i386: acpi: hack not yet converted tables calls to deal with table_data being a pointer,
Igor Mammedov <=
- [Qemu-devel] [PATCH 01/13] convert to passing AcpiAml by pointers, Igor Mammedov, 2015/01/28
- [Qemu-devel] [PATCH 10/13] i386: acpi: add DSDT table using AML API, Igor Mammedov, 2015/01/28
- [Qemu-devel] [PATCH 07/13] acpi: make toplevel ACPI tables blob a dedicated object, Igor Mammedov, 2015/01/28
- [Qemu-devel] [PATCH 11/13] acpi: acpi_add_table() to common cross target file, Igor Mammedov, 2015/01/28
- [Qemu-devel] [PATCH 12/13] acpi: prepare for API internal collection of RSDT entries, Igor Mammedov, 2015/01/28
- [Qemu-devel] [PATCH 13/13] i386: acpi: mark SSDT as RSDT entry so API would add entry to RSDT automatically, Igor Mammedov, 2015/01/28
- [Qemu-devel] [PATCH 06/13] acpi: use TYPE_AML_OBJECT for toplevel ACPI tables blob, Igor Mammedov, 2015/01/28
- Re: [Qemu-devel] [PATCH 00/13] convert AML API to QOM, Andrew Jones, 2015/01/28
- Re: [Qemu-devel] [PATCH v2 01/47] acpi: introduce AML composer aml_append(), Michael S. Tsirkin, 2015/01/28
- Re: [Qemu-devel] [PATCH v2 01/47] acpi: introduce AML composer aml_append(), Igor Mammedov, 2015/01/28