[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] firmware/rombios: fix after update to libacpi
Fix a build breakage after the libacpi changes, this is due to rombios using the libacpi headers in order to parse the ACPI tables. Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Reported-by: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx> --- Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Cc: Wei Liu <wei.liu2@xxxxxxxxxx> Cc: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx> Cc: Jan Beulich <JBeulich@xxxxxxxx> --- The usage of ACPI tables in rombios seems quite simplistic, for example it doesn't check the version of the table at all, which could led to errors (not now, because the field it is accessing is always there for all the ACPI versions that we support). I guess this doesn't matter much since no more development is going to happen in rombios in any case. --- tools/firmware/rombios/32bit/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/firmware/rombios/32bit/util.c b/tools/firmware/rombios/32bit/util.c index e473e89..6c1c480 100644 --- a/tools/firmware/rombios/32bit/util.c +++ b/tools/firmware/rombios/32bit/util.c @@ -438,7 +438,7 @@ uint32_t get_s3_waking_vector(void) { struct acpi_20_rsdp *rsdp = find_rsdp(); struct acpi_20_xsdt *xsdt; - struct acpi_20_fadt *fadt; + struct acpi_fadt *fadt; struct acpi_20_facs *facs; uint32_t vector; @@ -449,8 +449,8 @@ uint32_t get_s3_waking_vector(void) if (!xsdt) return 0; - fadt = (struct acpi_20_fadt *)(long)xsdt->entry[0]; - if (!fadt || (fadt->header.signature != ACPI_2_0_FADT_SIGNATURE)) + fadt = (struct acpi_fadt *)(long)xsdt->entry[0]; + if (!fadt || (fadt->header.signature != ACPI_FADT_SIGNATURE)) return 0; facs = (struct acpi_20_facs *)(long)fadt->x_firmware_ctrl; -- 2.9.3 (Apple Git-75) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |