Remove deprecated bl1_init_bl2_mem_layout()
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Mon, 24 Sep 2018 16:26:25 +0000 (17:26 +0100)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Fri, 28 Sep 2018 14:31:53 +0000 (15:31 +0100)
Change-Id: I8ec8b4439ca1d7606aae069c2c576a9a8b18c92c
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
bl1/bl1_main.c
include/plat/common/platform.h
plat/common/plat_bl1_common.c

index d681a97ea38e0a53be9f38828ae66b5876d778e0..ca4369553f97dc66427d0bc9a9f079b550253612 100644 (file)
@@ -48,25 +48,6 @@ void bl1_calc_bl2_mem_layout(const meminfo_t *bl1_mem_layout,
        flush_dcache_range((unsigned long)bl2_mem_layout, sizeof(meminfo_t));
 }
 
-#if !ERROR_DEPRECATED
-/*******************************************************************************
- * Compatibility default implementation for deprecated API. This has a weak
- * definition. Platform specific code can override it if it wishes to.
- ******************************************************************************/
-#pragma weak bl1_init_bl2_mem_layout
-
-/*******************************************************************************
- * Function that takes a memory layout into which BL2 has been loaded and
- * populates a new memory layout for BL2 that ensures that BL1's data sections
- * resident in secure RAM are not visible to BL2.
- ******************************************************************************/
-void bl1_init_bl2_mem_layout(const struct meminfo *bl1_mem_layout,
-                            struct meminfo *bl2_mem_layout)
-{
-       bl1_calc_bl2_mem_layout(bl1_mem_layout, bl2_mem_layout);
-}
-#endif
-
 /*******************************************************************************
  * Function to perform late architectural and platform specific initialization.
  * It also queries the platform to load and run next BL image. Only called
index 6c81faf5c74712a0c9f0b6803dc0cd3349a04410..36039ab408a1df2d68861a4307450d96f2ef9ebc 100644 (file)
@@ -135,10 +135,6 @@ int bl1_plat_mem_check(uintptr_t mem_base, unsigned int mem_size,
 /*******************************************************************************
  * Optional BL1 functions (may be overridden)
  ******************************************************************************/
-#if !ERROR_DEPRECATED
-void bl1_init_bl2_mem_layout(const struct meminfo *bl1_mem_layout,
-                            struct meminfo *bl2_mem_layout);
-#endif
 /*
  * The following functions are used for image loading process in BL1.
  */
index 7fde2e4152fc338daedad9409c66246e1b9fb7a8..824f9e551f02818b2f2baf982b0410cbbfc62a5a 100644 (file)
@@ -106,11 +106,7 @@ int bl1_plat_handle_post_image_load(unsigned int image_id)
         */
        bl2_tzram_layout = (meminfo_t *) bl1_tzram_layout->total_base;
 
-#if !ERROR_DEPRECATED
-       bl1_init_bl2_mem_layout(bl1_tzram_layout, bl2_tzram_layout);
-#else
        bl1_calc_bl2_mem_layout(bl1_tzram_layout, bl2_tzram_layout);
-#endif
 
        ep_info->args.arg1 = (uintptr_t)bl2_tzram_layout;