Skip to content
Snippets Groups Projects
Commit 49390aa1 authored by Lionel Debieve's avatar Lionel Debieve Committed by Sebastien PASDELOUP
Browse files

plat/st: invalidate data only when binary is not skipped


Fix a Data abort while trying to invalidate data at address 0.
When the partition is skipped, the invalidate must not be done
as the bl_info are not filled.

Change-Id: Ib90f1a7ac55648a9228e6dc53b875265a4eede32
Signed-off-by: default avatarLionel Debieve <lionel.debieve@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/214784


Tested-by: default avatarNicolas LE BAYON <nicolas.le.bayon@st.com>
Reviewed-by: default avatarCIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: default avatarNicolas LE BAYON <nicolas.le.bayon@st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/224185


Tested-by: default avatarSebastien PASDELOUP <sebastien.pasdeloup-ext@st.com>
Reviewed-by: default avatarSebastien PASDELOUP <sebastien.pasdeloup-ext@st.com>
Reviewed-by: default avatarYann GAUTIER <yann.gautier@foss.st.com>
parent 85627445
No related branches found
No related tags found
No related merge requests found
......@@ -725,7 +725,8 @@ int bl2_plat_handle_post_image_load(unsigned int image_id)
* Invalidate remaining data read from MMC but not flushed by load_image_flush().
* We take the worst case which is 2 MMC blocks.
*/
if (image_id != FW_CONFIG_ID) {
if ((image_id != FW_CONFIG_ID) &&
((bl_mem_params->image_info.h.attr & IMAGE_ATTRIB_SKIP_LOADING) == 0U)) {
inv_dcache_range(bl_mem_params->image_info.image_base +
bl_mem_params->image_info.image_size,
2U * MMC_BLOCK_SIZE);
......
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