]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
ArmPlatformPkg/PrePeiCore: enable VFP at startup
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 6 Jan 2020 11:38:29 +0000 (12:38 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 14 Jan 2020 22:12:17 +0000 (22:12 +0000)
commita6a835bdb1f263fd696f02fc1773d1fedbdd93f6
tree1bfe3bd0e87b5a57aee463c524ef4a4873ca9624
parente3756ba90a35af6e75c0bc7754524582554041a6
ArmPlatformPkg/PrePeiCore: enable VFP at startup

While the alternative PEI-less SEC implementation in PrePi already
takes the EnableVFP PCD into account, the PrePeiCore code does not,
and so we may end up triggering synchronous exception when code
attempts to use FP or SIMD registers, which is permitted on AARCH64
by the spec.

So enable the VFP as early as feasible if the associated PCD is set.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPlatformPkg/PrePeiCore/PrePeiCore.c
ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf