hw/riscv: Add the checking if DTB overlaps to kernel or initrd
authorJim Shu <jim.shu@sifive.com>
Wed, 20 Nov 2024 15:39:35 +0000 (23:39 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 20 Dec 2024 01:22:47 +0000 (11:22 +1000)
commit1a65064c1f4dc701370c1d59ac1b85afa198b3b0
tree07f1180cca99b7dbf08586d25640991e07f20ef6
parentd3592955af2a015be1d7138643b4a010eee0ff0c
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>
hw/riscv/boot.c
include/hw/riscv/boot.h