mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-22 12:34:19 +00:00
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:
parent
c06b555d7b
commit
cca1b72b3b
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue