diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-12-28 16:11:41 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-01-18 19:33:41 +0900 |
commit | 474970535552b1e28b33461429b5492a1f1dd7cd (patch) | |
tree | 85c85f59bc891864b2b584213bffff755fdc01d8 /plat/arm/common/sp_min/arm_sp_min_setup.c | |
parent | ecdc898da3f3c01a4034d875219c61357832c12c (diff) | |
download | trusted-firmware-a-474970535552b1e28b33461429b5492a1f1dd7cd.tar.gz |
Move BL_COHERENT_RAM_BASE/END defines to common_def.h
We have lots of duplicated defines (and comment blocks too).
Move them to include/plat/common/common_def.h.
While we are here, suffix the end address with _END instead of
_LIMIT. The _END is a better fit to indicate the linker-derived
real end address.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'plat/arm/common/sp_min/arm_sp_min_setup.c')
-rw-r--r-- | plat/arm/common/sp_min/arm_sp_min_setup.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/plat/arm/common/sp_min/arm_sp_min_setup.c b/plat/arm/common/sp_min/arm_sp_min_setup.c index 40155f4e81..a472ceb984 100644 --- a/plat/arm/common/sp_min/arm_sp_min_setup.c +++ b/plat/arm/common/sp_min/arm_sp_min_setup.c @@ -39,19 +39,6 @@ #define BL32_END (uintptr_t)(&__BL32_END__) -#if USE_COHERENT_MEM -/* - * The next 2 constants identify the extents of the coherent memory region. - * These addresses are used by the MMU setup code and therefore they must be - * page-aligned. It is the responsibility of the linker script to ensure that - * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to - * page-aligned addresses. - */ -#define BL32_COHERENT_RAM_BASE (uintptr_t)(&__COHERENT_RAM_START__) -#define BL32_COHERENT_RAM_LIMIT (uintptr_t)(&__COHERENT_RAM_END__) -#endif - - static entry_point_info_t bl33_image_ep_info; /* Weak definitions may be overridden in specific ARM standard platform */ @@ -206,8 +193,8 @@ void sp_min_plat_arch_setup(void) BL_RO_DATA_BASE, BL_RO_DATA_END #if USE_COHERENT_MEM - , BL32_COHERENT_RAM_BASE, - BL32_COHERENT_RAM_LIMIT + , BL_COHERENT_RAM_BASE, + BL_COHERENT_RAM_END #endif ); |