diff options
author | Michal Simek <michal.simek@amd.com> | 2023-02-13 13:11:28 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2023-02-13 13:19:03 +0100 |
commit | 2c03915322ede112030fcfb8097d4697b92fcc2f (patch) | |
tree | 4195e9bd4c31a3477fbf2d11e5f9c10883ddb3c6 /plat | |
parent | 6264643a0711faef346cbbb6e3d928a198aeaf31 (diff) | |
download | arm-trusted-firmware-2c03915322ede112030fcfb8097d4697b92fcc2f.tar.gz |
fix(zynqmp): fix DT reserved allocated size
BL31_LIMIT is not size but reserved node reg property contains base
address and size that's why BL31_LIMIT - BL31_BASE + 1 is correct size
of reseved space for BL31.
Also update warning message to cover that it is for BL31.
Change-Id: I53f53d2170eb873f758f9ba250d54f57f0b562b4
Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/xilinx/zynqmp/bl31_zynqmp_setup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plat/xilinx/zynqmp/bl31_zynqmp_setup.c b/plat/xilinx/zynqmp/bl31_zynqmp_setup.c index 1d59537d5..36cf992e6 100644 --- a/plat/xilinx/zynqmp/bl31_zynqmp_setup.c +++ b/plat/xilinx/zynqmp/bl31_zynqmp_setup.c @@ -197,8 +197,9 @@ static void prepare_dtb(void) } /* Reserve memory used by Trusted Firmware. */ - if (fdt_add_reserved_memory(dtb, "tf-a", BL31_BASE, BL31_LIMIT - BL31_BASE)) { - WARN("Failed to add reserved memory nodes to DT.\n"); + if (fdt_add_reserved_memory(dtb, "tf-a", BL31_BASE, + BL31_LIMIT - BL31_BASE + 1)) { + WARN("Failed to add reserved memory nodes for BL31 to DT.\n"); } ret = fdt_pack(dtb); |