fix(arm): remove critical handoff code from assert

Fix BL31 crashes caused by incorrect placement of firmware handoff code
within an assert. The function call has been removed from the assert to
ensure it’s executed even when assertions are disabled.

Change-Id: I668f5c08af33327e8ff0e22887c3da109bd6be31
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
This commit is contained in:
Harrison Mutai 2024-07-03 09:55:16 +00:00
parent c06b555d7b
commit cca1b72b3b

View file

@ -335,8 +335,10 @@ int arm_bl2_plat_handle_post_image_load(unsigned int image_id)
void arm_bl2_setup_next_ep_info(bl_mem_params_node_t *next_param_node) void arm_bl2_setup_next_ep_info(bl_mem_params_node_t *next_param_node)
{ {
assert(transfer_list_set_handoff_args( entry_point_info_t *ep __unused;
secure_tl, &next_param_node->ep_info) != NULL); ep = transfer_list_set_handoff_args(secure_tl,
&next_param_node->ep_info);
assert(ep != NULL);
arm_transfer_list_populate_ep_info(next_param_node, secure_tl, ns_tl); arm_transfer_list_populate_ep_info(next_param_node, secure_tl, ns_tl);
} }