diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-01 16:45:51 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-02 00:18:54 +0900 |
commit | ba68ef557bfa63c5a44c1f78acaccf1fb5e171f2 (patch) | |
tree | 881b9108faf564364e6cdb5fc5e18d1117680590 /plat/common | |
parent | 0fc50a86c1faeb8ffd42d6c1a121243595fb9143 (diff) |
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 'plat/common')
-rw-r--r-- | plat/common/platform_helpers_default.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plat/common/platform_helpers_default.c b/plat/common/platform_helpers_default.c index 75c5199d..597a5850 100644 --- a/plat/common/platform_helpers_default.c +++ b/plat/common/platform_helpers_default.c @@ -13,6 +13,8 @@ #pragma weak plat_error_handler #pragma weak bl2_plat_preload_setup +#pragma weak bl2_plat_handle_pre_image_load +#pragma weak bl2_plat_handle_post_image_load #pragma weak plat_try_next_boot_source void __dead2 plat_error_handler(int err) @@ -25,6 +27,16 @@ void bl2_plat_preload_setup(void) { } +int bl2_plat_handle_pre_image_load(unsigned int image_id) +{ + return 0; +} + +int bl2_plat_handle_post_image_load(unsigned int image_id) +{ + return 0; +} + int plat_try_next_boot_source(void) { return 0; |