summaryrefslogtreecommitdiff
path: root/bl31/bl31_main.c
diff options
context:
space:
mode:
authordanh-arm <dan.handley@arm.com>2014-06-16 12:41:58 +0100
committerdanh-arm <dan.handley@arm.com>2014-06-16 12:41:58 +0100
commit30e3b312f207fe520f66b6b32ee7da3599546935 (patch)
treee9f6d896f02074f059baba95ebc04dad5b86f833 /bl31/bl31_main.c
parent5c633bdff3f23c00fcfb91c26b709e1b66b84d21 (diff)
parent08ab89d324e8d784f0d35b639b7c27b4ff3e5959 (diff)
Merge pull request #131 from athoelke/at/cm_get_context
Provide cm_get/set_context() for current CPU
Diffstat (limited to 'bl31/bl31_main.c')
-rw-r--r--bl31/bl31_main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/bl31/bl31_main.c b/bl31/bl31_main.c
index f79a1220..6765e60e 100644
--- a/bl31/bl31_main.c
+++ b/bl31/bl31_main.c
@@ -71,9 +71,6 @@ void bl31_lib_init()
******************************************************************************/
void bl31_main(void)
{
-#if DEBUG
- unsigned long mpidr = read_mpidr();
-#endif
/* Perform remaining generic architectural setup from EL3 */
bl31_arch_setup();
@@ -98,7 +95,7 @@ void bl31_main(void)
* structure which has an exception stack allocated. The PSCI
* service should have set the context.
*/
- assert(cm_get_context(mpidr, NON_SECURE));
+ assert(cm_get_context(NON_SECURE));
cm_set_next_eret_context(NON_SECURE);
cm_init_pcpu_ptr_cache();
write_vbar_el3((uint64_t) runtime_exceptions);
@@ -195,7 +192,7 @@ void bl31_prepare_next_image_entry()
* Save the args generated in BL2 for the image in the right context
* used on its entry
*/
- ctx = cm_get_context(read_mpidr(), image_type);
+ ctx = cm_get_context(image_type);
gp_regs = get_gpregs_ctx(ctx);
memcpy(gp_regs, (void *)&next_image_info->args, sizeof(aapcs64_params_t));