Remove useless copies of meminfo structures
Platform setup code has to reserve some memory for storing the
memory layout information.  It is populated in early platform setup
code.

blx_get_sec_mem_layout() functions used to return a copy of this
structure.  This patch modifies blx_get_sec_mem_layout() functions
so that they now directly return a pointer to their memory layout
structure.  It ensures that the memory layout returned by
blx_get_sec_mem_layout() is always up-to-date and also avoids a
useless copy of the meminfo structure.

Also rename blx_get_sec_mem_layout() to blx_plat_sec_mem_layout()
to make it clear those functions are platform specific.

Change-Id: Ic7a6f9d6b6236b14865ab48a9f5eff545ce56551
1 parent dc98e53 commit ee12f6f7497882fdcc8acc7774c516739296799e
@Sandrine Bailleux Sandrine Bailleux authored on 28 Nov 2013
Dan Handley committed on 12 Dec 2013
Showing 10 changed files
View
bl1/bl1_main.c
View
bl2/bl2_main.c
View
docs/change-log.md
View
docs/porting-guide.md
View
include/bl1.h
View
include/bl2.h
View
include/bl31.h
View
plat/fvp/bl1_plat_setup.c
View
plat/fvp/bl2_plat_setup.c
View
plat/fvp/bl31_plat_setup.c