diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-05 15:34:10 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-06 09:45:50 +0100 |
commit | e5d5951973aaa153b7eff0d48384a4efe6014b7f (patch) | |
tree | 2c50fc97d69c54dfee283c41f5af977bdc27978e /services | |
parent | f68bc8a1c210bbdb36201a74528a96e93707eb45 (diff) |
xlat v2: Cleanup get/change mem attr helpers
Changed the names for consistency with the rest of the library. Introduced
new helpers that manipulate the active translation tables context.
Change-Id: Icaca56b67fcf6a96e88aa3c7e47411162e8e6856
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'services')
-rw-r--r-- | services/std_svc/spm/sp_xlat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/services/std_svc/spm/sp_xlat.c b/services/std_svc/spm/sp_xlat.c index 2aa2fa13..35271386 100644 --- a/services/std_svc/spm/sp_xlat.c +++ b/services/std_svc/spm/sp_xlat.c @@ -44,7 +44,7 @@ xlat_ctx_t *spm_get_sp_xlat_context(void) * converts an attributes value from the SMC format to the mmap_attr_t format by * setting MT_RW/MT_RO, MT_USER/MT_PRIVILEGED and MT_EXECUTE/MT_EXECUTE_NEVER. * The other fields are left as 0 because they are ignored by the function - * change_mem_attributes(). + * xlat_change_mem_attributes_ctx(). */ static unsigned int smc_attr_to_mmap_attr(unsigned int attributes) { @@ -112,12 +112,12 @@ int32_t spm_memory_attributes_get_smc_handler(sp_context_t *sp_ctx, spin_lock(&mem_attr_smc_lock); - int rc = get_mem_attributes(sp_ctx->xlat_ctx_handle, + int rc = xlat_get_mem_attributes_ctx(sp_ctx->xlat_ctx_handle, base_va, &attributes); spin_unlock(&mem_attr_smc_lock); - /* Convert error codes of get_mem_attributes() into SPM ones. */ + /* Convert error codes of xlat_get_mem_attributes_ctx() into SPM. */ assert((rc == 0) || (rc == -EINVAL)); if (rc == 0) { @@ -142,13 +142,13 @@ int spm_memory_attributes_set_smc_handler(sp_context_t *sp_ctx, spin_lock(&mem_attr_smc_lock); - int ret = change_mem_attributes(sp_ctx->xlat_ctx_handle, + int ret = xlat_change_mem_attributes_ctx(sp_ctx->xlat_ctx_handle, base_va, size, smc_attr_to_mmap_attr(attributes)); spin_unlock(&mem_attr_smc_lock); - /* Convert error codes of change_mem_attributes() into SPM ones. */ + /* Convert error codes of xlat_change_mem_attributes_ctx() into SPM. */ assert((ret == 0) || (ret == -EINVAL)); return (ret == 0) ? SPM_SUCCESS : SPM_INVALID_PARAMETER; |