summaryrefslogtreecommitdiff
path: root/bl31
diff options
context:
space:
mode:
authorKonstantin Porotchkin <kostap@marvell.com>2017-08-24 10:19:42 +0300
committerKostya Porotchkin <kostap@marvell.com>2017-09-05 14:25:23 +0300
commit52f3e33a0f055cc7ea3628ea58b7850ea402c233 (patch)
tree6089c8dade14fd3c927b25a64e066ea349aa186e /bl31
parent1cb20fe2e8069f489e3b68b69f9702221f8724ac (diff)
fix: Suppress compilation warnings in mainline code
Eliminate usage of deprecated functions in the mainline code. These functions trigger compilation warnings. Since this change may possibly break build of other platforms that are not yet switched to the new ATF API, the patch should not be pushed to the mainline ATF branch. Change-Id: I8f73ffe296c56516ed73db7346aad31e5527356a Signed-off-by: Konstantin Porotchkin <kostap@marvell.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/43351 Tested-by: iSoC Platform CI <ykjenk@marvell.com>
Diffstat (limited to 'bl31')
-rw-r--r--bl31/bl31_context_mgmt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bl31/bl31_context_mgmt.c b/bl31/bl31_context_mgmt.c
index 05bf4e17..a5477a93 100644
--- a/bl31/bl31_context_mgmt.c
+++ b/bl31/bl31_context_mgmt.c
@@ -79,7 +79,8 @@ void *cm_get_context_by_mpidr(uint64_t mpidr, uint32_t security_state)
{
assert(sec_state_is_valid(security_state));
- return cm_get_context_by_index(platform_get_core_pos(mpidr), security_state);
+ return cm_get_context_by_index(plat_core_pos_by_mpidr(mpidr),
+ security_state);
}
/*******************************************************************************
@@ -90,7 +91,7 @@ void cm_set_context_by_mpidr(uint64_t mpidr, void *context, uint32_t security_st
{
assert(sec_state_is_valid(security_state));
- cm_set_context_by_index(platform_get_core_pos(mpidr),
+ cm_set_context_by_index(plat_core_pos_by_mpidr(mpidr),
context, security_state);
}
@@ -105,6 +106,6 @@ void cm_init_context(unsigned long mpidr, const entry_point_info_t *ep)
(read_mpidr_el1() & MPIDR_AFFINITY_MASK))
cm_init_my_context(ep);
else
- cm_init_context_by_index(platform_get_core_pos(mpidr), ep);
+ cm_init_context_by_index(plat_core_pos_by_mpidr(mpidr), ep);
}
#endif