mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-13 08:27:23 +00:00
arm: psci: add a weak function psci_arch_cpu_entry
The added function psci_arch_cpu_entry() is called during psci_cpu_entry() and can be used by arch to handle PSCI state transition from ON_PENDING to ON. The default weak function is empty: not behavior change. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
1a047c23f9
commit
486daaa618
1 changed files with 7 additions and 0 deletions
|
@ -321,11 +321,18 @@ ENTRY(psci_arch_init)
|
||||||
ENDPROC(psci_arch_init)
|
ENDPROC(psci_arch_init)
|
||||||
.weak psci_arch_init
|
.weak psci_arch_init
|
||||||
|
|
||||||
|
ENTRY(psci_arch_cpu_entry)
|
||||||
|
mov pc, lr
|
||||||
|
ENDPROC(psci_arch_cpu_entry)
|
||||||
|
.weak psci_arch_cpu_entry
|
||||||
|
|
||||||
ENTRY(psci_cpu_entry)
|
ENTRY(psci_cpu_entry)
|
||||||
bl psci_enable_smp
|
bl psci_enable_smp
|
||||||
|
|
||||||
bl _nonsec_init
|
bl _nonsec_init
|
||||||
|
|
||||||
|
bl psci_arch_cpu_entry
|
||||||
|
|
||||||
bl psci_get_cpu_id @ CPU ID => r0
|
bl psci_get_cpu_id @ CPU ID => r0
|
||||||
mov r2, r0 @ CPU ID => r2
|
mov r2, r0 @ CPU ID => r2
|
||||||
bl psci_get_context_id @ context id => r0
|
bl psci_get_context_id @ context id => r0
|
||||||
|
|
Loading…
Reference in a new issue