qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 2/4] RISC-V: Copy the fdt in dram instead of ROM


From: Bin Meng
Subject: Re: [PATCH v4 2/4] RISC-V: Copy the fdt in dram instead of ROM
Date: Fri, 3 Jul 2020 09:19:12 +0800

On Thu, Jul 2, 2020 at 2:39 AM Atish Patra <atish.patra@wdc.com> wrote:
>
> Currently, the fdt is copied to the ROM after the reset vector. The firmware
> has to copy it to DRAM. Instead of this, directly copy the device tree to a
> pre-computed dram address. The device tree load address should be as far as
> possible from kernel and initrd images. That's why it is kept at the end of
> the DRAM or 4GB whichever is lesser.
>
> Signed-off-by: Atish Patra <atish.patra@wdc.com>
> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
> ---
>  hw/riscv/boot.c         | 53 +++++++++++++++++++++++++++++------------
>  hw/riscv/sifive_u.c     | 28 ++++++++++------------
>  hw/riscv/spike.c        |  7 +++++-
>  hw/riscv/virt.c         |  7 +++++-
>  include/hw/riscv/boot.h |  4 +++-
>  5 files changed, 66 insertions(+), 33 deletions(-)
>

Reviewed-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Bin Meng <bin.meng@windriver.com>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]