littlekernel / lk

LK embedded kernel
MIT License
3.11k stars 613 forks source link

[arch][arm64] use SMC when booted at EL2 in QEMU #321

Closed pcc closed 2 years ago

pcc commented 2 years ago

If we were booted at EL2 (e.g. when passing -machine virt,virtualization=on), we need to use SMC instead of HVC for PSCI calls. Change psci_call() to do this and add a flag to do-qemuarm to allow testing this scenario.