[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/4] hw/riscv: Return the end address of the loaded firmwa
From: |
Bin Meng |
Subject: |
Re: [PATCH v2 2/4] hw/riscv: Return the end address of the loaded firmware |
Date: |
Tue, 20 Oct 2020 11:17:47 +0800 |
On Wed, Oct 14, 2020 at 8:28 AM Alistair Francis
<alistair.francis@wdc.com> wrote:
>
> Instead of returning the unused entry address from riscv_load_firmware()
> instead return the end address. Also return the end address from
> riscv_find_and_load_firmware().
>
> This tells the caller if a firmware was loaded and how big it is. This
> can be used to determine the load address of the next image (usually the
> kernel).
>
> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
> ---
> include/hw/riscv/boot.h | 8 ++++----
> hw/riscv/boot.c | 28 +++++++++++++++++-----------
> 2 files changed, 21 insertions(+), 15 deletions(-)
>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Bin Meng <bin.meng@windriver.com>
- [PATCH v2 0/4] Allow loading a no MMU kernel, Alistair Francis, 2020/10/13
- [PATCH v2 1/4] hw/riscv: sifive_u: Allow specifying the CPU, Alistair Francis, 2020/10/13
- [PATCH v2 3/4] hw/riscv: Add a riscv_is_32_bit() function, Alistair Francis, 2020/10/13
- [PATCH v2 2/4] hw/riscv: Return the end address of the loaded firmware, Alistair Francis, 2020/10/13
- [PATCH v2 4/4] hw/riscv: Load the kernel after the firmware, Alistair Francis, 2020/10/13
- Re: [PATCH v2 0/4] Allow loading a no MMU kernel, Alistair Francis, 2020/10/20