From 7efaad9e30958d3d5cefc6eed838e73f5b0b809b Mon Sep 17 00:00:00 2001 From: Daniel Boulby Date: Tue, 14 May 2024 12:08:54 +0100 Subject: [PATCH] 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 Change-Id: I96fdc79626968830985bdd540f89e73b213de7d8 --- plat/arm/common/sp_min/arm_sp_min_setup.c | 6 +----- 1 file changed, 1 insertion(+), 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,