From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] x86: qemu: qfw: Implement acpi_get_rsdp_addr()
Date: Tue, 30 Jan 2018 15:05:44 +0200 [thread overview]
Message-ID: <1517317544.7000.1336.camel@linux.intel.com> (raw)
In-Reply-To: <1517317277-22957-2-git-send-email-bmeng.cn@gmail.com>
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 <bmeng.cn@gmail.com>
> ---
>
> 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 <andriy.shevchenko@linux.intel.com>
Thanks for taking care!
--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
next prev parent reply other threads:[~2018-01-30 13:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-30 13:01 [U-Boot] [PATCH 1/2] x86: acpi: Use an API to get the ACPI RSDP table address Bin Meng
2018-01-30 13:01 ` [U-Boot] [PATCH 2/2] x86: qemu: qfw: Implement acpi_get_rsdp_addr() Bin Meng
2018-01-30 13:05 ` Andy Shevchenko [this message]
2018-01-30 14:42 ` Bin Meng
2018-02-05 6:00 ` Miao Yan
2018-02-05 9:02 ` Bin Meng
2018-01-30 14:42 ` [U-Boot] [PATCH 1/2] x86: acpi: Use an API to get the ACPI RSDP table address Bin Meng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1517317544.7000.1336.camel@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.