summaryrefslogtreecommitdiff
path: root/common/bl_common.c
diff options
context:
space:
mode:
authorVikram Kanigiri <vikram.kanigiri@arm.com>2014-03-11 17:41:00 +0000
committerDan Handley <dan.handley@arm.com>2014-03-21 17:17:48 +0000
commit6ba0b6d6743534b3d443602dc88558d62ea432b3 (patch)
tree4581ce3cd1104da70e38e8855ec35e824e5cb625 /common/bl_common.c
parent5132060c48fe2dbc3ce64755cd83b61d6e017f10 (diff)
Remove partially qualified asm helper functions
Each ARM Trusted Firmware image should know in which EL it is running and it should use the corresponding register directly instead of reading currentEL and knowing which asm register to read/write Change-Id: Ief35630190b6f07c8fbb7ba6cb20db308f002945
Diffstat (limited to 'common/bl_common.c')
-rw-r--r--common/bl_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/bl_common.c b/common/bl_common.c
index da027b66..b03165ba 100644
--- a/common/bl_common.c
+++ b/common/bl_common.c
@@ -78,8 +78,8 @@ void __dead2 drop_el(aapcs64_params *args,
unsigned long spsr,
unsigned long entrypoint)
{
- write_spsr(spsr);
- write_elr(entrypoint);
+ write_spsr_el3(spsr);
+ write_elr_el3(entrypoint);
eret(args->arg0,
args->arg1,
args->arg2,