Use *_END instead of *_LIMIT for linker derived end addresses
The usage of _LIMIT seems odd here, so rename as follows:
  BL_CODE_LIMIT     --> BL_CODE_END
  BL_RO_DATA_LIMIT  --> BL_RO_DATA_END
  BL1_CODE_LIMIT    --> BL1_CODE_END
  BL1_RO_DATA_LIMIT --> BL1_RO_DATA_END

Basically, we want to use _LIMIT and _END properly as follows:
  *_SIZE + *_MAX_SIZE = *_LIMIT
  *_SIZE + *_SIZE     = *_END

The _LIMIT is generally defined by platform_def.h to indicate the
platform-dependent memory constraint.  So, its typical usage is
  ASSERT(. <= BL31_LIMIT, "BL31 image has exceeded its limit.")
in a linker script.

On the other hand, _END is used to indicate the end address of the
compiled image, i.e. we do not know it until the image is linked.

Here, all of these macros belong to the latter, so should be
suffixed with _END.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 44f1c0b commit ecdc898da3f3c01a4034d875219c61357832c12c
@Masahiro Yamada Masahiro Yamada authored on 17 Jan 2017
Showing 9 changed files
View
include/plat/common/common_def.h
View
plat/arm/common/arm_bl1_setup.c
View
plat/arm/common/arm_bl2_setup.c
View
plat/arm/common/arm_bl2u_setup.c
View
plat/arm/common/arm_bl31_setup.c
View
plat/arm/common/sp_min/arm_sp_min_setup.c
View
plat/arm/common/tsp/arm_tsp_setup.c
View
plat/xilinx/zynqmp/bl31_zynqmp_setup.c
View
plat/xilinx/zynqmp/tsp/tsp_plat_setup.c