aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2014-05-16 11:26:50 +0100
committerSandrine Bailleux <sandrine.bailleux@arm.com>2014-06-05 17:39:40 +0100
commit7795260a2cf988ad2ed779910881a78b04a15b7c (patch)
tree72560502dec3b7b7ebeb8433a7c4ef626cb47426
parentdcb3a563537830043806414e9d8e6a347cddc68b (diff)
downloadarm-trusted-firmware-7795260a2cf988ad2ed779910881a78b04a15b7c.tar.gz
juno: Access MPIDR_EL1 register directly in assembler
Instead of using the read_mpidr() helper functions to read the MPIDR_EL1 system register, assembler coded functions should use MRS/MSR instructions. This results in faster and more compact code. Change-Id: I42bb61a926113c4f80aa1ce72ee29ab26cd8fa43
-rw-r--r--plat/juno/aarch64/bl1_plat_helpers.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/plat/juno/aarch64/bl1_plat_helpers.S b/plat/juno/aarch64/bl1_plat_helpers.S
index 65b26cf..16f18a2 100644
--- a/plat/juno/aarch64/bl1_plat_helpers.S
+++ b/plat/juno/aarch64/bl1_plat_helpers.S
@@ -85,8 +85,6 @@ func platform_get_entrypoint
*/
func platform_cold_boot_init
mov x20, x0
- bl read_mpidr
- mov x19, x0
/* ---------------------------------------------
* Give ourselves a small coherent stack to
@@ -94,6 +92,7 @@ func platform_cold_boot_init
* CCI in assembler
* ---------------------------------------------
*/
+ mrs x0, mpidr_el1
bl platform_set_coherent_stack
/* ---------------------------------------------
@@ -112,7 +111,7 @@ func platform_cold_boot_init
* -IS-WBWA memory
* ---------------------------------------------
*/
- mov x0, x19
+ mrs x0, mpidr_el1
bl platform_set_stack
/* ---------------------------------------------