Page MenuHomePhabricator

BL2 Image Load
Open, Needs TriagePublic


Recently, I find that the function 'bl1_plat_handle_post_image_load' will return when 'image_id' is not equal to 'BL2_IMAGE_ID'. However, the return value is 0, and i just wonder whether it's a mistake.

Thanks a lot.

Event Timeline

CJKay added a subscriber: CJKay.Jan 17 2022, 1:45 PM

Hi @yuezhiran, I believe it's valid for this function to return 0. The bl1_plat_handle_post_image_load function is overridable by the platform, but we do not provide a mechanism for the platform to communicate the "acceptable" image IDs to the caller. We cannot therefore return an error if we receive an image ID that has no post-load process, because it may be called for any image (the FWU process does this here).