@@ -56,7 +56,7 @@ ArmPlatformSecInitialize (
IN UINTN MpId
)
{
- UINT32 Identification;
+ ARM_GIC_ARCH_REVISION Revision;^M
// If it is not the primary core then there is nothing to do
if (!ArmPlatformIsPrimaryCore (MpId)) {
@@ -73,13 +73,12 @@ ArmPlatformSecInitialize (
MmioAndThenOr32 (SP810_CTRL_BASE + SP810_SYS_CTRL_REG,
~SP810_SYS_CTRL_TIMER3_EN, SP810_SYS_CTRL_TIMER3_TIMCLK);
// Read the GIC Identification Register
- Identification = ArmGicGetInterfaceIdentification (PcdGet32
(PcdGicInterruptInterfaceBase));
-
+ Revision = ArmGicGetSupportedArchRevision ();^M
// Check if we are GICv3
- if (ARM_GIC_ICCIIDR_GET_ARCH_VERSION(Identification) >= 0x3) {
+ if (Revision == ARM_GIC_ARCH_REVISION_3) {^M
InitializeGicV3 ();
}
-
+^M
return RETURN_SUCCESS;