diff options
Diffstat (limited to 'plat/common/plat_bl1_common.c')
-rw-r--r-- | plat/common/plat_bl1_common.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/plat/common/plat_bl1_common.c b/plat/common/plat_bl1_common.c index 73362a1b..aee9440a 100644 --- a/plat/common/plat_bl1_common.c +++ b/plat/common/plat_bl1_common.c @@ -27,19 +27,24 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ + +#include <arch_helpers.h> +#include <assert.h> #include <bl_common.h> #include <debug.h> +#include <errno.h> #include <platform_def.h> /* * The following platform functions are weakly defined. They - * are default implementations that allow BL1 compile in + * are default implementations that allow BL1 to compile in * absence of real definitions. The Platforms may override * with more complex definitions. */ #pragma weak bl1_plat_get_next_image_id #pragma weak bl1_plat_set_ep_info #pragma weak bl1_plat_get_image_desc +#pragma weak bl1_plat_fwu_done unsigned int bl1_plat_get_next_image_id(void) @@ -63,3 +68,21 @@ image_desc_t *bl1_plat_get_image_desc(unsigned int image_id) static image_desc_t bl2_img_desc = BL2_IMAGE_DESC; return &bl2_img_desc; } + +__dead2 void bl1_plat_fwu_done(void *cookie, void *rsvd_ptr) +{ + while (1) + wfi(); +} + +/* + * The Platforms must override with real definition. + */ +#pragma weak bl1_plat_mem_check + +int bl1_plat_mem_check(uintptr_t mem_base, unsigned int mem_size, + unsigned int flags) +{ + assert(0); + return -ENOMEM; +} |