diff options
author | Volodymyr Babchuk <vlad.babchuk@gmail.com> | 2018-05-31 21:47:19 +0300 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2018-07-04 17:51:52 +0200 |
commit | 7558c164b73dc436084fed81a2e75b5b809e0bc1 (patch) | |
tree | 82eda97f5e5960ec78e3c28f94e2a9f4b0865478 | |
parent | 8267e19bbccef985b379f845c72ac734b26a090e (diff) |
generic_ram_layout: align TA_RAM to SMALL_PAGE_SIZE
This enables more optimal memory usage, as there will be no unused
holes in memory mappings.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
-rw-r--r-- | core/arch/arm/include/mm/generic_ram_layout.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/arch/arm/include/mm/generic_ram_layout.h b/core/arch/arm/include/mm/generic_ram_layout.h index 9329340c..0ee01203 100644 --- a/core/arch/arm/include/mm/generic_ram_layout.h +++ b/core/arch/arm/include/mm/generic_ram_layout.h @@ -159,12 +159,12 @@ #define TEE_RAM_START TZDRAM_BASE #define TEE_RAM_PH_SIZE TEE_RAM_VA_SIZE #define TA_RAM_START ROUNDUP(TZDRAM_BASE + TEE_RAM_VA_SIZE, \ - CORE_MMU_PGDIR_SIZE) + SMALL_PAGE_SIZE) #endif /*CFG_WITH_PAGER*/ #define TA_RAM_SIZE (ROUNDDOWN(TZDRAM_BASE + (TZDRAM_SIZE - \ TEE_SDP_TEST_MEM_SIZE), \ - CORE_MMU_PGDIR_SIZE) - TA_RAM_START) + SMALL_PAGE_SIZE) - TA_RAM_START) #endif /*CFG_TZDRAM_START*/ /* |