audk/ArmPkg/Drivers/ArmGic
Ard Biesheuvel 37ec4d9af7 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
2014-11-13 16:41:51 +00:00
..
AArch64 ArmPkg/ArmGicLib: select GICv2 mode if SRE is present but unavailable 2014-11-13 16:41:51 +00:00
Arm ArmPkg/ArmGicLib: select GICv2 mode if SRE is present but unavailable 2014-11-13 16:41:51 +00:00
GicV2 ArmPkg/ArmGic: Added GicV3 support to ArmGicDxe 2014-10-27 10:30:53 +00:00
GicV3 ArmPkg/ArmGicLib: select GICv2 mode if SRE is present but unavailable 2014-11-13 16:41:51 +00:00
ArmGicCommonDxe.c ArmPkg/ArmGic: Move RegisterInterruptSource() to the common GicDxe file 2014-07-04 11:26:33 +00:00
ArmGicDxe.c ArmPkg/ArmGic: Added GicV3 support to ArmGicDxe 2014-10-27 10:30:53 +00:00
ArmGicDxe.h ArmPkg/ArmGic: Added GicV3 support to ArmGicDxe 2014-10-27 10:30:53 +00:00
ArmGicDxe.inf ArmPkg/ArmGic: Added GicV3 support to ArmGicDxe 2014-10-27 10:30:53 +00:00
ArmGicLib.c ArmPkg/ArmGic: Added GicV3 support to ArmGicLib 2014-10-27 10:29:50 +00:00
ArmGicLib.inf ArmPkg/ArmGic: Removed 'GCC' toolchain to build assembly files 2014-11-13 11:06:00 +00:00
ArmGicNonSecLib.c ArmPkg/ArmGic: Introduced support for GicV2 to ArmGicLib 2014-07-04 14:36:42 +00:00
ArmGicSecLib.c ArmPkg/ArmGic: Introduced support for GicV2 to ArmGicLib 2014-07-04 14:36:42 +00:00
ArmGicSecLib.inf ArmPkg/ArmGic: Removed 'GCC' toolchain to build assembly files 2014-11-13 11:06:00 +00:00