nuttx/arch/arm64
qinwei1 4cb5ff3353 arm64: ARMv8-r(Cortex-R82) support(add ARCH_SET_VMPIDR_EL2 option)
Summary

   VMPIDR_EL2 holds the value of the Virtualization Multiprocessor ID.
From architecture manual of AArch64, the behave is:
  -reading register MPIDR_EL1 in EL2, it's return real MPIDR_EL1
  -reading register MPIDR_EL1 in EL1, it's return VMPIDR_EL2
  So since NuttX for SMP is running at EL1 to read MPIDR_EL1 for
  identify CPU id, it's need to set VMPIDR_EL2 to MPIDR_EL1 for
  every CPU at boot EL2 stage.
  For some platform, the bootloader or hypervisor will do that at
  the EL2 stage, but not all.

Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
2023-03-01 13:23:48 +08:00
..
include sched/addrenv: Remove up_addrenv_restore 2023-02-08 02:51:23 +08:00
src arm64: ARMv8-r(Cortex-R82) support(add ARCH_SET_VMPIDR_EL2 option) 2023-03-01 13:23:48 +08:00
Kconfig arm64: ARMv8-r(Cortex-R82) support(add ARCH_SET_VMPIDR_EL2 option) 2023-03-01 13:23:48 +08:00