aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2021-09-29 15:26:48 +0100
committerMark Rutland <mark.rutland@arm.com>2022-01-27 16:14:49 +0000
commit3bce381552a8185dfd2fe9212fea7e2a9ee94d0e (patch)
tree0e60ba8a23ba09c563bbf0ff0070957513fd314e
parent368a5c273e5cabaacf5d7319e0e52c43ced8a282 (diff)
downloadboot-wrapper-aarch64-3bce381552a8185dfd2fe9212fea7e2a9ee94d0e.tar.gz
Unify start_el3 & start_no_el3
Now that the start_el3 and start_no_el3 labels point at the same place, unify them into a start_bootmethod label and update callers. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com>
-rw-r--r--arch/aarch32/boot.S5
-rw-r--r--arch/aarch32/psci.S3
-rw-r--r--arch/aarch64/boot.S4
-rw-r--r--arch/aarch64/psci.S3
-rw-r--r--arch/aarch64/spin.S3
5 files changed, 7 insertions, 11 deletions
diff --git a/arch/aarch32/boot.S b/arch/aarch32/boot.S
index 820957b..4d16c9c 100644
--- a/arch/aarch32/boot.S
+++ b/arch/aarch32/boot.S
@@ -51,7 +51,7 @@ ASM_FUNC(_start)
bl cpu_init_bootwrapper
- b start_no_el3
+ b start_bootmethod
_switch_monitor:
adr lr, _monitor
@@ -69,8 +69,7 @@ _monitor:
bl gic_secure_init
- /* Initialise boot method */
- b start_el3
+ b start_bootmethod
err_invalid_id:
b .
diff --git a/arch/aarch32/psci.S b/arch/aarch32/psci.S
index cdc36b0..6613b6f 100644
--- a/arch/aarch32/psci.S
+++ b/arch/aarch32/psci.S
@@ -38,6 +38,5 @@ handle_smc:
pop {r4 - r12, lr}
movs pc, lr
-ASM_FUNC(start_el3)
-ASM_FUNC(start_no_el3)
+ASM_FUNC(start_bootmethod)
b psci_first_spin
diff --git a/arch/aarch64/boot.S b/arch/aarch64/boot.S
index c0ec518..da5fa65 100644
--- a/arch/aarch64/boot.S
+++ b/arch/aarch64/boot.S
@@ -57,7 +57,7 @@ reset_at_el3:
bl gic_secure_init
- b start_el3
+ b start_bootmethod
/*
* EL2 initialization
@@ -97,7 +97,7 @@ reset_no_el3:
bl cpu_init_bootwrapper
- b start_no_el3
+ b start_bootmethod
err_invalid_id:
b .
diff --git a/arch/aarch64/psci.S b/arch/aarch64/psci.S
index d6ca2eb..9709dbb 100644
--- a/arch/aarch64/psci.S
+++ b/arch/aarch64/psci.S
@@ -79,6 +79,5 @@ smc_exit:
ldp x18, x19, [sp], #16
eret
-ASM_FUNC(start_el3)
-ASM_FUNC(start_no_el3)
+ASM_FUNC(start_bootmethod)
b psci_first_spin
diff --git a/arch/aarch64/spin.S b/arch/aarch64/spin.S
index 764c532..375f732 100644
--- a/arch/aarch64/spin.S
+++ b/arch/aarch64/spin.S
@@ -15,8 +15,7 @@
ASM_FUNC(cpu_init_bootmethod)
ret
-ASM_FUNC(start_el3)
-ASM_FUNC(start_no_el3)
+ASM_FUNC(start_bootmethod)
cpuid x0, x1
bl find_logical_id