mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/riscv: Add the checking if DTB overlaps to kernel or initrd
DTB is placed to the end of memory, so we will check if the start address of DTB overlaps to the address of kernel/initrd. Signed-off-by: Jim Shu <jim.shu@sifive.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Message-ID: <20241120153935.24706-4-jim.shu@sifive.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
d3592955af
commit
1a65064c1f
2 changed files with 27 additions and 1 deletions
|
@ -32,6 +32,9 @@ typedef struct RISCVBootInfo {
|
|||
hwaddr image_low_addr;
|
||||
hwaddr image_high_addr;
|
||||
|
||||
hwaddr initrd_start;
|
||||
ssize_t initrd_size;
|
||||
|
||||
bool is_32bit;
|
||||
} RISCVBootInfo;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue