firmware/rombios: fix after update to libacpi
PATCH 1/1 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.
---
Cc: Ian Jackson <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Razvan Cojocaru <[email protected]>
Cc: Jan Beulich <[email protected]>
---
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(-)
tools/firmware/rombios/32bit/util.c +3 -3
@@ -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;
Signature · 7 lines
2.9.3 (Apple Git-75) _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 5 lines · Roger Pau Monne
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é <[email protected]>Reported-by Razvan Cojocaru <[email protected]>
Pushed with Andrew's Reviewed-by -- he said LGTM on IRC.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel