Skip to content
Snippets Groups Projects
Commit 6d804c09 authored by Yann Gautier's avatar Yann Gautier Committed by Sebastien Pasdeloup
Browse files

bl2: post process only the loaded image


If an image was not loaded due to its SKIP_LOAD attribute, there is
no reason to post process the image. This change ensures only loaded
images get post processed.

Change-Id: Ib9f84f0f1dd7e811ec400fa999c84a15dd9b6297
Signed-off-by: default avatarEtienne Carriere <etienne.carriere@st.com>
Signed-off-by: default avatarYann Gautier <yann.gautier@st.com>
parent 70932efd
No related branches found
No related tags found
No related merge requests found
...@@ -74,17 +74,17 @@ struct entry_point_info *bl2_load_images(void) ...@@ -74,17 +74,17 @@ struct entry_point_info *bl2_load_images(void)
bl2_node_info->image_id, err); bl2_node_info->image_id, err);
plat_error_handler(err); plat_error_handler(err);
} }
/* Allow platform to handle image information. */
err = bl2_plat_handle_post_image_load(bl2_node_info->image_id);
if (err != 0) {
ERROR("BL2: Failure in post image load handling (%i)\n", err);
plat_error_handler(err);
}
} else { } else {
INFO("BL2: Skip loading image id %d\n", bl2_node_info->image_id); INFO("BL2: Skip loading image id %d\n", bl2_node_info->image_id);
} }
/* Allow platform to handle image information. */
err = bl2_plat_handle_post_image_load(bl2_node_info->image_id);
if (err != 0) {
ERROR("BL2: Failure in post image load handling (%i)\n", err);
plat_error_handler(err);
}
/* Go to next image */ /* Go to next image */
bl2_node_info = bl2_node_info->next_load_info; bl2_node_info = bl2_node_info->next_load_info;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment