aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2013-11-19 17:14:22 +0000
committerDan Handley <dan.handley@arm.com>2013-11-27 15:31:06 +0000
commit942f405357b0472db987b8276fca0f81de98f2e2 (patch)
tree12f3747266cf8a5db367fb835de8b37496c30885
parent295538bc374bab20ea6ec68137cbee5997b541c6 (diff)
fvp: Remove call to bl2_get_ns_mem_layout() function
On FVP platforms, for now it is assumed that the normal-world bootloader is already sitting in its final memory location. Therefore, BL2 doesn't need to load it and so it doesn't need to know the extents of the non-trusted DRAM. Change-Id: I33177ab43ca242edc8958f2fa8d994e7cf3e0843
-rw-r--r--plat/fvp/bl2_plat_setup.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/plat/fvp/bl2_plat_setup.c b/plat/fvp/bl2_plat_setup.c
index 9cd123a..4fdef8b 100644
--- a/plat/fvp/bl2_plat_setup.c
+++ b/plat/fvp/bl2_plat_setup.c
@@ -62,19 +62,11 @@ static meminfo bl2_tzram_layout
__attribute__ ((aligned(PLATFORM_CACHE_LINE_SIZE),
section("tzfw_coherent_mem")));
-/* Data structure which holds the extents of the non-trusted DRAM for BL2*/
-static meminfo dram_layout;
-
meminfo bl2_get_sec_mem_layout(void)
{
return bl2_tzram_layout;
}
-meminfo bl2_get_ns_mem_layout(void)
-{
- return dram_layout;
-}
-
/*******************************************************************************
* BL1 has passed the extents of the trusted SRAM that should be visible to BL2
* in x0. This memory layout is sitting at the base of the free trusted SRAM.
@@ -98,24 +90,13 @@ void bl2_early_platform_setup(meminfo *mem_layout,
}
/*******************************************************************************
- * Not much to do here aprt from finding out the extents of non-trusted DRAM
- * which will be used for loading the non-trusted software images. We are
- * relying on pre-iniitialized zi memory so there is nothing to zero out like
- * in BL1. This is 'cause BL2 is raw PIC binary. Its load address is determined
- * at runtime. The ZI section might be lost if its not already there.
+ * Perform platform specific setup. For now just initialize the memory location
+ * to use for passing arguments to BL31.
******************************************************************************/
void bl2_platform_setup()
{
- dram_layout.total_base = DRAM_BASE;
- dram_layout.total_size = DRAM_SIZE;
- dram_layout.free_base = DRAM_BASE;
- dram_layout.free_size = DRAM_SIZE;
- dram_layout.attr = 0;
-
/* Use the Trusted DRAM for passing args to BL31 */
bl2_el_change_mem_ptr = (unsigned char **) TZDRAM_BASE;
-
- return;
}
/*******************************************************************************