summaryrefslogtreecommitdiff
path: root/ArmVirtPkg/ArmVirtXen.dsc
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2024-05-13 18:43:11 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-05-24 15:48:52 +0000
commitc98f7f75508912c086158892fc56b0c3b85abcf1 (patch)
treedcf8ee3f141bbfb76a75c0b88d03e91b4b83e890 /ArmVirtPkg/ArmVirtXen.dsc
parent865229bcc8939c7a69d525f2b0627ef1532d5bc6 (diff)
downloadedk2-c98f7f75508912c086158892fc56b0c3b85abcf1.zip
edk2-c98f7f75508912c086158892fc56b0c3b85abcf1.tar.gz
edk2-c98f7f75508912c086158892fc56b0c3b85abcf1.tar.bz2
ArmVirtPkg: Use dynamic PCD to set the SMCCC conduit
On ARM systems, whether SMC or HVC instructions need to be used to issue monitor calls is typically dependent on the exception level, but there are also cases where EL1 might use SMC instructions, so there is no hard and fast rule. For ArmVirtQemu, this does depend strictly on the exception level, so set the default to HVC (for EL1 execution) and override it to SMC when booted at EL2. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Leif Lindholm <quic_llindhol@quicinc.com> Cc: Sami Mujawar <sami.mujawar@arm.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Committed-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'ArmVirtPkg/ArmVirtXen.dsc')
-rw-r--r--ArmVirtPkg/ArmVirtXen.dsc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ArmVirtPkg/ArmVirtXen.dsc b/ArmVirtPkg/ArmVirtXen.dsc
index 5809832..ceb37f8 100644
--- a/ArmVirtPkg/ArmVirtXen.dsc
+++ b/ArmVirtPkg/ArmVirtXen.dsc
@@ -120,6 +120,8 @@
gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
+ gArmTokenSpaceGuid.PcdMonitorConduitHvc|TRUE
+
[PcdsDynamicDefault.common]
gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0