summaryrefslogtreecommitdiff
path: root/src/arch/arm64
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm64')
-rw-r--r--src/arch/arm64/boot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/arm64/boot.c b/src/arch/arm64/boot.c
index 1fdc234fd1..367aaaca2c 100644
--- a/src/arch/arm64/boot.c
+++ b/src/arch/arm64/boot.c
@@ -36,16 +36,16 @@ static void run_payload(struct prog *prog)
doit = prog_entry(prog);
arg = prog_entry_arg(prog);
- uint8_t current_el = get_current_el();
-
- printk(BIOS_SPEW, "entry = %p\n", doit);
-
if (IS_ENABLED(CONFIG_ARM64_USE_SECURE_MONITOR))
secmon_run(doit, arg);
else {
+ uint8_t current_el = get_current_el();
+
/* Start the other CPUs spinning. */
spintable_start();
+ printk(BIOS_SPEW, "entry = %p\n", doit);
+
/* If current EL is not EL3, jump to payload at same EL. */
if (current_el != EL3) {
cache_sync_instructions();