From 7795260a2cf988ad2ed779910881a78b04a15b7c Mon Sep 17 00:00:00 2001 From: Sandrine Bailleux Date: Fri, 16 May 2014 11:26:50 +0100 Subject: 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 --- plat/juno/aarch64/bl1_plat_helpers.S | 5 ++--- 1 file 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 /* --------------------------------------------- -- cgit v1.2.3