diff options
| author | Vishal Oliyil Kunnil <vishalo@qti.qualcomm.com> | 2026-09-19 05:30:19 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-09-24 11:12:17 +0300 |
| commit | 7929524a7b31c250a770626d67af6e609b5a1f92 (patch) | |
| tree | 931f17df7ced84ac55cfbbbf96ea34987b3a610f /MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.msa | |
| parent | 1fb42dd2f5aaef2da51cf5cb31cc8aaa2bad262e (diff) | |
| download | edk2-7929524a7b31c250a770626d67af6e609b5a1f92.tar.xz | |
ArmPkg/ArmPsciMpServices: Initialize HCR_EL2 on secondary CPU
Initialize HCR_EL2 on each AP before MMU and cache setup so secondary
CPUs inherit the BSP's virtualization and execution-control state. AP
HCR_EL2 state is not guaranteed to match the BSP when PSCI releases a CPU.
Read and cache HCR_EL2 only when the BSP runs at EL2, then restore the
cached value on AP entry.
Without this initialization, QEMU runs showed APs failing during early
startup, becoming stuck at exception vector 0x200, and causing
StartupAllAPs to time out.
Signed-off-by: Vishal Oliyil Kunnil <vishalo@qti.qualcomm.com>
Diffstat (limited to 'MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.msa')
0 files changed, 0 insertions, 0 deletions
