mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
fix(rmmd): remove the assert check for RMM_BASE
This patch removes the assert from rmmd_setup() that checks if the RMM image PC is equal to RMM_BASE. The RMM image can be relocated to any address in the DRAM by the previous bootloader. So, providing the RMM base address at compile time is not feasible for such platforms. The assert check is now replaced with a runtime check for the RMM image. Change-Id: I568cdb6f76f41d0dcdc7a95feb75e252a7c5c930 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
This commit is contained in:
parent
fdd8a24b98
commit
8cb9c63577
1 changed files with 1 additions and 4 deletions
|
@ -209,7 +209,7 @@ int rmmd_setup(void)
|
|||
}
|
||||
|
||||
rmm_ep_info = bl31_plat_get_next_image_ep_info(REALM);
|
||||
if (rmm_ep_info == NULL) {
|
||||
if ((rmm_ep_info == NULL) || (rmm_ep_info->pc == 0)) {
|
||||
WARN("No RMM image provided by BL2 boot loader, Booting "
|
||||
"device without RMM initialization. SMCs destined for "
|
||||
"RMM will return SMC_UNK\n");
|
||||
|
@ -219,9 +219,6 @@ int rmmd_setup(void)
|
|||
return -ENOENT;
|
||||
}
|
||||
|
||||
/* Under no circumstances will this parameter be 0 */
|
||||
assert(rmm_ep_info->pc == RMM_BASE);
|
||||
|
||||
/* Initialise an entrypoint to set up the CPU context */
|
||||
ep_attr = EP_REALM;
|
||||
if ((read_sctlr_el3() & SCTLR_EE_BIT) != 0U) {
|
||||
|
|
Loading…
Add table
Reference in a new issue