diff options
author | Daniel Boulby <daniel.boulby@arm.com> | 2024-05-14 12:08:54 +0100 |
---|---|---|
committer | Daniel Boulby <daniel.boulby@arm.com> | 2024-05-14 18:23:29 +0100 |
commit | 7efaad9e30958d3d5cefc6eed838e73f5b0b809b (patch) | |
tree | 9f953411a747d7ac8b640d6e780ac5a98c634e5f | |
parent | 85ea97f972752e73147de53d883a06582c78b75f (diff) | |
download | arm-trusted-firmware-7efaad9e30958d3d5cefc6eed838e73f5b0b809b.tar.gz |
fix(juno): remove incorrect assert in sp min boot
There may be some valid configurations where a bootloader runs
before sp_min. In this case the bootloader may pass arguments through
the general purpose registers when passing control to sp_min causing
the assert to fail. Although sp_min may not use the content of the
registers requiring them to be zero seems unnecessary.
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Change-Id: I96fdc79626968830985bdd540f89e73b213de7d8
-rw-r--r-- | plat/arm/common/sp_min/arm_sp_min_setup.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plat/arm/common/sp_min/arm_sp_min_setup.c b/plat/arm/common/sp_min/arm_sp_min_setup.c index f15c13791..4cd514bf1 100644 --- a/plat/arm/common/sp_min/arm_sp_min_setup.c +++ b/plat/arm/common/sp_min/arm_sp_min_setup.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2020, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2016-2024, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -68,10 +68,6 @@ void arm_sp_min_early_platform_setup(void *from_bl2, uintptr_t tos_fw_config, arm_console_boot_init(); #if RESET_TO_SP_MIN - /* There are no parameters from BL2 if SP_MIN is a reset vector */ - assert(from_bl2 == NULL); - assert(plat_params_from_bl2 == NULL); - /* Populate entry point information for BL33 */ SET_PARAM_HEAD(&bl33_image_ep_info, PARAM_EP, |