Commit 7795260a authored by Sandrine Bailleux's avatar Sandrine Bailleux
Browse files

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
parent dcb3a563
...@@ -85,8 +85,6 @@ func platform_get_entrypoint ...@@ -85,8 +85,6 @@ func platform_get_entrypoint
*/ */
func platform_cold_boot_init func platform_cold_boot_init
mov x20, x0 mov x20, x0
bl read_mpidr
mov x19, x0
/* --------------------------------------------- /* ---------------------------------------------
* Give ourselves a small coherent stack to * Give ourselves a small coherent stack to
...@@ -94,6 +92,7 @@ func platform_cold_boot_init ...@@ -94,6 +92,7 @@ func platform_cold_boot_init
* CCI in assembler * CCI in assembler
* --------------------------------------------- * ---------------------------------------------
*/ */
mrs x0, mpidr_el1
bl platform_set_coherent_stack bl platform_set_coherent_stack
/* --------------------------------------------- /* ---------------------------------------------
...@@ -112,7 +111,7 @@ func platform_cold_boot_init ...@@ -112,7 +111,7 @@ func platform_cold_boot_init
* -IS-WBWA memory * -IS-WBWA memory
* --------------------------------------------- * ---------------------------------------------
*/ */
mov x0, x19 mrs x0, mpidr_el1
bl platform_set_stack bl platform_set_stack
/* --------------------------------------------- /* ---------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment