diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-10-31 23:21:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-31 23:21:39 +0000 |
commit | 27b2493c6f4fe32a0fa76dff123d193dad86c315 (patch) | |
tree | fcad15004c188158a7f91f43a57292887d372e31 /common/bl_common.c | |
parent | a2ef56af183155465df8ed7577854cebec7522d9 (diff) | |
parent | 01f62b6d0d90a236cbfdf385aab7ec2ac11f2e65 (diff) |
Merge pull request #1141 from robertovargas-arm/boot_redundancy
Add platform hooks for boot redundancy support
Diffstat (limited to 'common/bl_common.c')
-rw-r--r-- | common/bl_common.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/common/bl_common.c b/common/bl_common.c index cad4de90..e4473ed3 100644 --- a/common/bl_common.c +++ b/common/bl_common.c @@ -354,7 +354,13 @@ static int load_auth_image_internal(unsigned int image_id, ******************************************************************************/ int load_auth_image(unsigned int image_id, image_info_t *image_data) { - return load_auth_image_internal(image_id, image_data, 0); + int err; + + do { + err = load_auth_image_internal(image_id, image_data, 0); + } while (err != 0 && plat_try_next_boot_source()); + + return err; } #else /* LOAD_IMAGE_V2 */ @@ -553,8 +559,14 @@ int load_auth_image(meminfo_t *mem_layout, image_info_t *image_data, entry_point_info_t *entry_point_info) { - return load_auth_image_internal(mem_layout, image_id, image_base, - image_data, entry_point_info, 0); + int err; + + do { + err = load_auth_image_internal(mem_layout, image_id, image_base, + image_data, entry_point_info, 0); + } while (err != 0 && plat_try_next_boot_source()); + + return err; } #endif /* LOAD_IMAGE_V2 */ |