From: Bin Meng Date: Tue, 30 Jan 2018 13:01:17 +0000 (-0800) Subject: x86: qemu: qfw: Implement acpi_get_rsdp_addr() X-Git-Tag: v2018.03-rc2~64^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d1c661915f046d89c4618889283a4f4d3b0bde2;p=u-boot x86: qemu: qfw: Implement acpi_get_rsdp_addr() U-Boot on QEMU does not build ACPI table by ourself, instead it uses the prebuilt ACPI table via the qfw interface. This implements the qfw version of acpi_get_rsdp_addr() for setup_zimage(). Signed-off-by: Bin Meng Reviewed-by: Andy Shevchenko --- diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c index a8af9e0c53..9a5480349e 100644 --- a/drivers/misc/qfw.c +++ b/drivers/misc/qfw.c @@ -222,6 +222,14 @@ out: free(table_loader); return addr; } + +ulong acpi_get_rsdp_addr(void) +{ + struct fw_file *file; + + file = qemu_fwcfg_find_file("etc/acpi/rsdp"); + return file->addr; +} #endif /* Read configuration item using fw_cfg PIO interface */