X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ArmPkg%2FLibrary%2FArmGicArchSecLib%2FArmGicArchLib.c;fp=ArmPkg%2FLibrary%2FArmGicArchSecLib%2FArmGicArchLib.c;h=3c791a245c44122066972f1d1c7339e6d65d6e12;hp=ca81951b2b2bdae93724255ec0777bfa1872f1a1;hb=429309e0c6b74792d679681a8edd0d5ae0ff850c;hpb=7c2a6033c149625482a18cd51b65513c8fb8fe15 diff --git a/ArmPkg/Library/ArmGicArchSecLib/ArmGicArchLib.c b/ArmPkg/Library/ArmGicArchSecLib/ArmGicArchLib.c index ca81951b2b..3c791a245c 100644 --- a/ArmPkg/Library/ArmGicArchSecLib/ArmGicArchLib.c +++ b/ArmPkg/Library/ArmGicArchSecLib/ArmGicArchLib.c @@ -15,7 +15,7 @@ ArmGicGetSupportedArchRevision ( VOID ) { - UINT32 IccSre; + UINT32 IccSre; // Ideally we would like to use the GICC IIDR Architecture version here, but // this does not seem to be very reliable as the implementation could easily @@ -36,6 +36,7 @@ ArmGicGetSupportedArchRevision ( ArmGicV3SetControlSystemRegisterEnable (IccSre | ICC_SRE_EL2_SRE); IccSre = ArmGicV3GetControlSystemRegisterEnable (); } + if (IccSre & ICC_SRE_EL2_SRE) { return ARM_GIC_ARCH_REVISION_3; }