From 42019bf4e93a111984af9dc44608d8d5203a3b1d Mon Sep 17 00:00:00 2001 From: Yatharth Kochar Date: Mon, 12 Sep 2016 16:10:33 +0100 Subject: Changes for new version of image loading in BL1/BL2 This patch adds changes in BL1 & BL2 to use new version of image loading to load the BL images. Following are the changes in BL1: -Use new version of load_auth_image() to load BL2 -Modified `bl1_init_bl2_mem_layout()` to remove using `reserve_mem()` and to calculate `bl2_mem_layout`. `bl2_mem_layout` calculation now assumes that BL1 RW data is at the top of the bl1_mem_layout, which is more restrictive than the previous BL1 behaviour. Following are the changes in BL2: -The `bl2_main.c` is refactored and all the functions for loading BLxx images are now moved to `bl2_image_load.c` `bl2_main.c` now calls a top level `bl2_load_images()` to load all the images that are applicable in BL2. -Added new file `bl2_image_load_v2.c` that uses new version of image loading to load the BL images in BL2. All the above changes are conditionally compiled using the `LOAD_IMAGE_V2` flag. Change-Id: Ic6dcde5a484495bdc05526d9121c59fa50c1bf23 --- bl2/bl2_private.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bl2/bl2_private.h') diff --git a/bl2/bl2_private.h b/bl2/bl2_private.h index 022d1e93..b3397778 100644 --- a/bl2/bl2_private.h +++ b/bl2/bl2_private.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -31,9 +31,15 @@ #ifndef __BL2_PRIVATE_H__ #define __BL2_PRIVATE_H__ +/****************************************** + * Forward declarations + *****************************************/ +struct entry_point_info; + /****************************************** * Function prototypes *****************************************/ void bl2_arch_setup(void); +struct entry_point_info *bl2_load_images(void); #endif /* __BL2_PRIVATE_H__ */ -- cgit v1.2.3