summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2014-11-13 16:41:51 +0000
committeroliviermartin <oliviermartin@Edk2>2014-11-13 16:41:51 +0000
commit37ec4d9af79197dcc93810f230af7a3fe2d0d243 (patch)
tree114e0390b491db4159daa3ea6fa8607c180a14a3 /BaseTools
parent77d5dac5c62ec8c8e732571ed70c9204bddf7695 (diff)
downloadedk2-platforms-37ec4d9af79197dcc93810f230af7a3fe2d0d243.tar.xz
ArmPkg/ArmGicLib: select GICv2 mode if SRE is present but unavailable
Even if the CPU id registers indicate hardware support for the System Register interface to the GIC, higher exception levels may disable that interface and only allow access through MMIO. So move the enabling of the SRE bit to the GIC version detection routine: if we trigger an exception, we would have anyway at a later stage, so the net effect is the same. However, if setting the bit doesn't stick, it means we can switch to MMIO and proceed normally otherwise. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16344 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools')
0 files changed, 0 insertions, 0 deletions