armv8: start.S: Subordinate CPUs psci setup vector

As current design, only Manager CPU called armv8_setup_psci() before
jump to next stage(such as Linux Kernel), Subordinate CPUs also need
setup psci vector to handle trap request which comes from higher EL
level.

Signed-off-by: Xu Zhang <423756212@qq.com>
[trini: Guard with !CONFIG_XPL_BUILD check]
This commit is contained in:
Xu Zhang
2025-03-26 09:44:12 +08:00
committed by Tom Rini
parent 82f5ce11e6
commit 7c9f8680c1

View File

@@ -334,6 +334,9 @@ WEAK(lowlevel_init)
/*
* All slaves will enter EL2 and optionally EL1.
*/
#if defined(CONFIG_ARMV8_PSCI) && !defined(CONFIG_XPL_BUILD)
bl psci_setup_vectors
#endif
adr x4, lowlevel_in_el2
ldr x5, =ES_TO_AARCH64
bl armv8_switch_to_el2