aboutsummaryrefslogtreecommitdiff
path: root/bl2/bl2_image_load_v2.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-02-01 16:45:51 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-02-02 00:18:54 +0900
commitba68ef557bfa63c5a44c1f78acaccf1fb5e171f2 (patch)
tree881b9108faf564364e6cdb5fc5e18d1117680590 /bl2/bl2_image_load_v2.c
parent0fc50a86c1faeb8ffd42d6c1a121243595fb9143 (diff)
downloadtrusted-firmware-a-ba68ef557bfa63c5a44c1f78acaccf1fb5e171f2.tar.gz
bl2: add bl2_plat_handle_pre_image_load()
There are cases where we need to manipulate image information before the load. For example, for decompressing data, we cannot load the compressed images to their final destination. Instead, we need to load them to the temporary buffer for the decompressor. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'bl2/bl2_image_load_v2.c')
-rw-r--r--bl2/bl2_image_load_v2.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/bl2/bl2_image_load_v2.c b/bl2/bl2_image_load_v2.c
index 6517703d87..ebbad45e04 100644
--- a/bl2/bl2_image_load_v2.c
+++ b/bl2/bl2_image_load_v2.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -54,6 +54,12 @@ entry_point_info_t *bl2_load_images(void)
}
}
+ err = bl2_plat_handle_pre_image_load(bl2_node_info->image_id);
+ if (err) {
+ ERROR("BL2: Failure in pre image load handling (%i)\n", err);
+ plat_error_handler(err);
+ }
+
if (!(bl2_node_info->image_info->h.attr & IMAGE_ATTRIB_SKIP_LOADING)) {
INFO("BL2: Loading image id %d\n", bl2_node_info->image_id);
err = load_auth_image(bl2_node_info->image_id,