From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Date: Tue, 30 Jan 2018 15:05:44 +0200 Subject: [U-Boot] [PATCH 2/2] x86: qemu: qfw: Implement acpi_get_rsdp_addr() In-Reply-To: <1517317277-22957-2-git-send-email-bmeng.cn@gmail.com> References: <1517317277-22957-1-git-send-email-bmeng.cn@gmail.com> <1517317277-22957-2-git-send-email-bmeng.cn@gmail.com> Message-ID: <1517317544.7000.1336.camel@linux.intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 2018-01-30 at 05:01 -0800, Bin Meng wrote: > 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 > --- > > drivers/misc/qfw.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c > index a8af9e0..9a54803 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 */ For both, FWIW: Reviewed-by: Andy Shevchenko Thanks for taking care! -- Andy Shevchenko Intel Finland Oy