diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-09-24 17:28:13 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-09-28 15:31:53 +0100 |
commit | 90e0c983734ca4d2ee7523a1c85d7d5449a756df (patch) | |
tree | 2beb554552fadc55649d6e04b5ae4f53bd433df7 /lib | |
parent | 7dab0eac071ffbc6bf065e16c3dd6964cab67501 (diff) | |
download | platform_external_arm-trusted-firmware-90e0c983734ca4d2ee7523a1c85d7d5449a756df.tar.gz platform_external_arm-trusted-firmware-90e0c983734ca4d2ee7523a1c85d7d5449a756df.tar.bz2 platform_external_arm-trusted-firmware-90e0c983734ca4d2ee7523a1c85d7d5449a756df.zip |
xlat: Remove deprecated interfaces
Change-Id: I83de2ae3e0795e6fec3c1e5b37c441b64b0c9cb6
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/aarch64/xlat_tables.c | 14 | ||||
-rw-r--r-- | lib/xlat_tables/aarch32/xlat_tables.c | 16 | ||||
-rw-r--r-- | lib/xlat_tables/xlat_tables_private.h | 17 | ||||
-rw-r--r-- | lib/xlat_tables_v2/xlat_tables_context.c | 30 |
4 files changed, 0 insertions, 77 deletions
diff --git a/lib/aarch64/xlat_tables.c b/lib/aarch64/xlat_tables.c deleted file mode 100644 index 04cbf3c22..000000000 --- a/lib/aarch64/xlat_tables.c +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -/* - * This file is deprecated and is retained here only for compatibility. - * The xlat_tables library can be found in `lib/xlat_tables` directory. - */ -#if !ERROR_DEPRECATED -#include "../xlat_tables/xlat_tables_common.c" -#include "../xlat_tables/aarch64/xlat_tables.c" -#endif diff --git a/lib/xlat_tables/aarch32/xlat_tables.c b/lib/xlat_tables/aarch32/xlat_tables.c index 033e2375f..55957031f 100644 --- a/lib/xlat_tables/aarch32/xlat_tables.c +++ b/lib/xlat_tables/aarch32/xlat_tables.c @@ -61,22 +61,6 @@ void init_xlat_tables(void) assert((PLAT_PHY_ADDR_SPACE_SIZE - 1U) <= get_max_supported_pa()); } -/******************************************************************************* - * Function for enabling the MMU in Secure PL1, assuming that the - * page-tables have already been created. - ******************************************************************************/ -#if !ERROR_DEPRECATED -void enable_mmu_secure(unsigned int flags) -{ - enable_mmu_svc_mon(flags); -} - -void enable_mmu_direct(unsigned int flags) -{ - enable_mmu_direct_svc_mon(flags); -} -#endif - void enable_mmu_svc_mon(unsigned int flags) { unsigned int mair0, ttbcr, sctlr; diff --git a/lib/xlat_tables/xlat_tables_private.h b/lib/xlat_tables/xlat_tables_private.h index f882f7efb..fad967ebf 100644 --- a/lib/xlat_tables/xlat_tables_private.h +++ b/lib/xlat_tables/xlat_tables_private.h @@ -15,23 +15,6 @@ #error xlat tables v2 must be used with HW_ASSISTED_COHERENCY #endif -/* - * If the platform hasn't defined a physical and a virtual address space size - * default to ADDR_SPACE_SIZE. - */ -#if ERROR_DEPRECATED -# ifdef ADDR_SPACE_SIZE -# error "ADDR_SPACE_SIZE is deprecated. Use PLAT_xxx_ADDR_SPACE_SIZE instead." -# endif -#elif defined(ADDR_SPACE_SIZE) -# ifndef PLAT_PHY_ADDR_SPACE_SIZE -# define PLAT_PHY_ADDR_SPACE_SIZE ADDR_SPACE_SIZE -# endif -# ifndef PLAT_VIRT_ADDR_SPACE_SIZE -# define PLAT_VIRT_ADDR_SPACE_SIZE ADDR_SPACE_SIZE -# endif -#endif - CASSERT(CHECK_VIRT_ADDR_SPACE_SIZE(PLAT_VIRT_ADDR_SPACE_SIZE), assert_valid_virt_addr_space_size); diff --git a/lib/xlat_tables_v2/xlat_tables_context.c b/lib/xlat_tables_v2/xlat_tables_context.c index bf0cc9f5d..4a4cb946c 100644 --- a/lib/xlat_tables_v2/xlat_tables_context.c +++ b/lib/xlat_tables_v2/xlat_tables_context.c @@ -19,24 +19,6 @@ uint64_t mmu_cfg_params[MMU_CFG_PARAM_MAX]; /* - * Each platform can define the size of its physical and virtual address spaces. - * If the platform hasn't defined one or both of them, default to - * ADDR_SPACE_SIZE. The latter is deprecated, though. - */ -#if ERROR_DEPRECATED -# ifdef ADDR_SPACE_SIZE -# error "ADDR_SPACE_SIZE is deprecated. Use PLAT_xxx_ADDR_SPACE_SIZE instead." -# endif -#elif defined(ADDR_SPACE_SIZE) -# ifndef PLAT_PHY_ADDR_SPACE_SIZE -# define PLAT_PHY_ADDR_SPACE_SIZE ADDR_SPACE_SIZE -# endif -# ifndef PLAT_VIRT_ADDR_SPACE_SIZE -# define PLAT_VIRT_ADDR_SPACE_SIZE ADDR_SPACE_SIZE -# endif -#endif - -/* * Allocate and initialise the default translation context for the BL image * currently executing. */ @@ -121,18 +103,6 @@ int xlat_change_mem_attributes(uintptr_t base_va, size_t size, uint32_t attr) #ifdef AARCH32 -#if !ERROR_DEPRECATED -void enable_mmu_secure(unsigned int flags) -{ - enable_mmu_svc_mon(flags); -} - -void enable_mmu_direct(unsigned int flags) -{ - enable_mmu_direct_svc_mon(flags); -} -#endif - void enable_mmu_svc_mon(unsigned int flags) { setup_mmu_cfg((uint64_t *)&mmu_cfg_params, flags, |